Quantcast
Viewing all articles
Browse latest Browse all 5355

With CVI2013 breakpoints work differently

In the past, I used to insert lines 'doing nothing' but allowing me to set a breakpoint. Now, with CVI2013, the following does not work anymore:

 

if ( expression )

{

// something

}

else

{

;    <- putting a breakpoint here is useless: the breakpoint is ignored

}

 

The workaround is to have something like

 

if ( expression )

{

// something

}

else

{

Delay (0.1);    <- putting a breakpoint works

}

 

Could it be that clang is 'optimizing code' even in debug mode...?

 

Also, setting or removing a breakpoint causes the file being recompiled - this slows down debugging enormously :smileyfrustrated:

 


Viewing all articles
Browse latest Browse all 5355

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>