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 First time debugging (Read 1809 times)
ardlance
Newbies
*
Offline


Posts: 4
Joined: Jun 30th, 2015
First time debugging
May 31st, 2017 at 11:58pm
Print Post  
This is my first time debugging in Visual Micro and it is not working like I expect. I have a simple LED blink program and have a breakpoint set in the main loop. The output windows says that the program is paused at line 9 which is where my breakpoint is located. The program continues to run and the output windows scrolls with the same message over and over. 
I assumed the program would halt at the breakpoint and I would need to press F5 to continue. I have automatic debugging on. What am I missing?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: First time debugging
Reply #1 - Jun 1st, 2017 at 12:03am
Print Post  
Hi,

Take a read of the debugger docs and you will find quite a lot of useful stuff.

For example, if you add a message/watch to a breakpoint you will find the "Continue Execution" checkbox is ticked. This is because visual studio assumes you just want a trace point without break. Uncheck the "Continue Execution" checkbox and you should then be prompted with F5/continue. When the cpu is paused you will see a millis counter of how long it has been paused.

There is also a menu item "vmicro>debugger>trace only" which is Off by default. When On all breakpoints will be treated as trace points, no stopping.



  
Back to top
WWW  
IP Logged
 
ardlance
Newbies
*
Offline


Posts: 4
Joined: Jun 30th, 2015
Re: First time debugging
Reply #2 - Jun 1st, 2017 at 11:25pm
Print Post  
Okay great. I will check it out. 
Tim@Visual Micro wrote on Jun 1st, 2017 at 12:03am:
Hi,

Take a read of the debugger docs and you will find quite a lot of useful stuff.

For example, if you add a message/watch to a breakpoint you will find the "Continue Execution" checkbox is ticked. This is because visual studio assumes you just want a trace point without break. Uncheck the "Continue Execution" checkbox and you should then be prompted with F5/continue. When the cpu is paused you will see a millis counter of how long it has been paused.

There is also a menu item "vmicro>debugger>trace only" which is Off by default. When On all breakpoints will be treated as trace points, no stopping.




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