02-27-2020 04:24 PM
Hey,
Currently I cannot evaluate the values of any variables in a script when I'm at a break-point.
The current variable contents page is always empty, any watch value I setup returns "???" and when I select a variable by text and mouse over also nothing.
I've managed to use msgbox() to finish up what I was currently working on, and my scripts run just fine.
I've attached images with an example and my Diadem version and script engine.
Thanks,
Alex R
05-27-2021 06:54 AM
Hey Frisbert,
I currently have the same issue you had and only get "???" for every variable in the Debugger.
Since your question is already 3 months old I hope you found out the solution yourself and could tell me how you solved it. Because using only msgboxes in a script with 100,000 lines of code can be annyoing and difficult - but I'm sure you realized that yourself.
Couldn't find anything in the web about this issue besides your question btw.
Thank you!
Benedikt
05-27-2021 07:53 AM
Hey,
The only solution that I've seen work is a clean re-install.
My coworkers have done this to resolve the issue when it happened to them, I'm still using msgbox debugging.
Regards,
Alex R
05-28-2021 09:36 AM
Hi All,
I also mainly use MsgBox() and LogFileWrite() for debugging a DIAdem script. For DataPlugin debugging, I usually output the same sort of information to properties in the Data Portal.
I know DIAdem experts who swear by the DBM() messaging approach, though, so that's another option to consider.
Brad Turpin
Principal Technical Support Engineer
NI
10-07-2021 10:03 AM
Hi All,
I've just returned to using DIAdem after a break of a few months and I know find I have this problem too. Are NI aware? Is there a solution other than a re-install yet?
Regards,
Simon.
10-11-2021 03:07 AM
you do not need to reinstall DIAdem completely
it's enough to "reset" DIAdem
therefore, you have to close DIAdem
then you go to %USERPROFILE%\AppData\Local\National Instruments\DIAdem
there are the settings folders for every DIAdem version
rename the folder which belongs to the DIAdem version with the issue
now, when you start DIAdem again, a new folder with default settings for the version is created
DIAdem debugger should show variables now again
10-11-2021 03:14 AM
Hi,
I'm afraid this didn't work for me. The problem remained even after a new folder was created.
I'm in conversation with NI and their solution is a reinstall....
Regards.
10-11-2021 03:30 AM
Just before trying a full reinstall, NI Tech Support made the following suggestion, which worked:
Go to C:\Program Files\National Instruments\DIAdem 2020 and run DIAdemStart.exe as an Admin.
This re-associated the installer registry options.
Regards.
10-12-2021 07:18 AM
Hi all,
For anyone else who runs into this problem in the future, there is now a public article detailing steps to try here, including the steps in this forum thread.
Cheers,
Nick
10-12-2021 08:20 AM
Thanks for the update, I followed the instructions from the linked post and it fixed the issue for me in DiAdems 2018.