Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Breakpoint problems/questions ... (SOLVED) (Read 2590 times)
BobSelby
Newbies
*
Offline


Posts: 6
Location: London
Joined: Dec 10th, 2014
Breakpoint problems/questions ... (SOLVED)
Nov 7th, 2015 at 12:51am
Print Post  
Hi, just downloaded and installed the latest and greatest on VS 2015 and considering a "pro" licence ... but ...

I have an existing sketch that runs OK but have noticed that when I put a breakpoint on a "switch" statement it never seems to hit it.

Also if the first statement after a "case" is a function and I set a breakpoint there then sometimes the function seems to be called BEFORE the breakpoint is reported. But then after fiddling with otherĀ  breakpoints to try to figure out whats happening it seems to start working - very odd.
TIA
Bob

« Last Edit: Nov 14th, 2015 at 2:06am by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Breakpoint problems/questions ...
Reply #1 - Nov 7th, 2015 at 1:11am
Print Post  
Hi Bob,

The debugger code injection inserts breakpoints at the end of the current line. There are a few combinations where it can't insert the breakpoint in the correct place. These are shown in the "Breakpoints and Your Code" section of the Debugging your Arduino Sketch documentation.

You will see that case/switch statements are described towards the end of the section but the entire section is worth a gaze.

It's not ideal but hopefully the doc makes sense and it can work for you. If you have syntax that you think is a contender for an improvement then please post a snippet.


« Last Edit: Nov 7th, 2015 at 12:57pm by Tim@Visual Micro »  
Back to top
IP Logged
 
BobSelby
Newbies
*
Offline


Posts: 6
Location: London
Joined: Dec 10th, 2014
Re: Breakpoint problems/questions ...
Reply #2 - Nov 7th, 2015 at 6:38am
Print Post  
A clear case of RTFM Smiley

Thanks Smiley
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint