04-10-2018 07:38 AM
Hello,
I am running CVI 2017 and have set up a watch expression of a structure member, see below.
Now, at the first line of my code I have set a breakpoint that allows me to enable this watch expression, i.e., check the checkmark 'break on change". Surprisingly, now when stopped at the breakpoint this watch expression has doubled, see below.
After checking BOTH checkmarks and continuing the debug process the program stops once this variable value changes.
However, if I check only ONE checkmark of the two (identical) watch expressions the debug process is NOT halted once the variable value changes...
Any explanations are welcome
Thanks!
04-10-2018 07:59 AM
Hello Wofgang,
This seems to be another instance of this bug. If you remove the 2 watchpoints and add it again can you reproduce the same behavior?
Regards,
Constantin
04-10-2018 08:57 AM
Hi Constantin,
Thanks for the (quick) reply!
I don't know if it's the same... The original description states that it occurs after several runs of the code and then re-opening the watch window.
In my case, the Watch window was open from the very beginning, and the duplication occurred already at the first run... so I did not close or re-open the window.
In addition, I did not see a report that one or two checkmarks of the same variable produce different results..
My scenario also is different from the one described by Daniel, I first opened the watch window, added the variable, then added a breakpoint. Also I never closed the watch window.
To address your suggestion I restarted the CVI project, opened the watch window (watch variable still there) and ran the program - now at the breakpoint only one variable showed up, and checking it did break execution as expected. Same for second and third run.
Then I removed the watch varibable and wanted to add it again.
Different things can happen, all strange:
if I click on the structure member (in the example, .conform_to_system), only the member is added to the watch window,
and at the breakpoint the debugger complains about the unknow identifier.
I would suggest that this is an independent bug, only valid identifiers should be accepted...
Now I remove this watch expression and click on the first part of the variable
to add it to the watch window:
at the breakpoint this yields
i.e., the complete structure is monitored (but in my case I do not want a break if one of the many structure members changes)
So as an intermediate question: how did I manage to select the one member of the structure?
04-10-2018 09:08 AM
@Wolfgang
So as an intermediate question: how did I manage to select the one member of the structure?
I was able to show in the watch window the 'structure.member' label by explicitly selecting the entire text (i.e. 'panelappearance.conform_to_system') and adding it to the watch window.
And I made some fast test on my system but was not able to duplicate your situation on (but my system is different from yours: CVI2015SP1f1)
04-10-2018 09:51 AM
Ah thanks, this saves me some experiments . Now I can try to investigate it further.