LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CVI 6.0 breakpoint problem

When running CVI project, sometimes CVI issues the following message: "Cannot set breakpoint. Line ## has no executable code.", while THE LINE HAS EXECUTABLE CODE!!! How to overcome this behaviour?
0 Kudos
Message 1 of 6
(3,541 Views)
Try recompiling and saving your file. Depending on what kind of edits you're doing, it seems like sometimes the debugger gets out of sync with the editor.
0 Kudos
Message 2 of 6
(3,541 Views)
I am seeing same in CVI7.0.


vishi

Al S wrote:
> Try recompiling and saving your file. Depending on what kind of edits
> you're doing, it seems like sometimes the debugger gets out of sync
> with the editor.
0 Kudos
Message 3 of 6
(3,541 Views)
Hi,

You are right the problem comes when you make some edits to the code that change the line order and then try to recompile with the previous line assignments. The best way to go will be to save the file ans recompile. Or just move the breackpoint to the next line.

Hope that helps.

Regards,

Juan Carlos
N.I.
0 Kudos
Message 4 of 6
(3,541 Views)
I never had this problem using the option "Save changes before running"
set to "Always" in the main Run Options.
Raf

Al S wrote:
> Try recompiling and saving your file. Depending on what kind of edits
> you're doing, it seems like sometimes the debugger gets out of sync
> with the editor.
0 Kudos
Message 5 of 6
(3,541 Views)
In CVI 6.0, I do occasionally see the problem even with Options >> Run Options >> Save changes before running >> Always
There's some connection between the compiler, the editor, and the debugger that seems to need to be rebuilt sometimes.
0 Kudos
Message 6 of 6
(3,541 Views)