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 Breakpoints and stepping not working in VS2015 (Read 3737 times)
robertzzyzxl
Newbies
*
Offline


Posts: 1
Joined: Sep 21st, 2016
Breakpoints and stepping not working in VS2015
Sep 21st, 2016 at 8:22am
Print Post  
I have just installed VisualMicro 1609.20.0, I am trying to debug a basic led example. If I set a breakpoint before downloading the sketch to an Arduino UNO, the breakpoint get hit correctly.

I cannot however step through the code from that point, nor can I set any additional breakpoints. Nor can I inspect any variables.

Any ideas that might help would be much appreciated.

  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Breakpoints and stepping not working in VS2015
Reply #1 - Sep 21st, 2016 at 1:54pm
Print Post  
Hi,

Arduino doesn't normally have debug so the Visual Micro debugger is a software debugger that injects debug commands in a temp copy of the code ruing compilation.

As such you have to set all breakpoints prior to compilation and then you can only step between them.

For watch expressions you also have to set them before upload. Use the breakpoint "when hit" to set watch expressions and/or messages. 

Adding =? allows expressions to be changed during debug.

All this is described in the documentation please see the debug section http://www.visualmicro.com/page/User-Guide.aspx?doc=index

Alternatively if you have a Segger or ICE hardware debugger Visual Micro can use that instead.

  
Back to top
IP Logged
 
snowshoe
Newbies
*
Offline


Posts: 1
Joined: Sep 28th, 2016
Re: Breakpoints and stepping not working in VS2015
Reply #2 - Sep 28th, 2016 at 10:44pm
Print Post  
I have VS community 2015 and bought the hobby pro of visual micro to try. when I right click I only get conditions actions and edit labels. I dont get the when hit to look at variables. can you help with what I might be doing wrong?

Thanks in advance
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Breakpoints and stepping not working in VS2015
Reply #3 - Sep 29th, 2016 at 12:57pm
Print Post  
I prefer the older dialog based system of VS2013 and below. It's less confusing.

The "when hit" message has been grouped into the "actions" where you specify the message
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint