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 Rookie debug struggles... (Read 2310 times)
TimF
Junior Member
**
Offline


Posts: 11
Joined: Jan 8th, 2016
Rookie debug struggles...
Mar 30th, 2017 at 10:47am
Print Post  
Paid customer finally trying debug on VS2017 with Arduino 1.8.2 - very simple Arduino sketch compiles and runs fine (both debug and release mode). Same results on ATmega2560 and NodeMCU1.0.

When I try debugging:

- Only breakpoints set before I run will break. If I add more breakpoints when at a breakpoint, debugger ignores. If I delete a preset breakpoint, debugger still breaks there.

- Single-step F10 and step-thru F11 work same as F5 - just runs to next preset breakpoint.

- Nothing ever shows on Expressions window.

- Serial window works fine - I see all Serial.print output.

Any suggestions on settings I am missing? Thanks!!
« Last Edit: Mar 30th, 2017 at 10:47am by TimF »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Rookie debug struggles...
Reply #1 - Mar 30th, 2017 at 10:58am
Print Post  
Hi,

We will be looking at a gdb debug option for esp8266 shortly. In the meantime you are either using serial or udp debug which can only be changed by compile and upload.

It also can not step every line of code. It's replacement to avoid lots of serial prints in the code and also allows known variables to be changed on the fly. Provides some graphs and charting etc while running. 

So the serial/udp/net debug can be useful but not as fluent a real debug. Always requires re-upload when changing debug settings. 

The debugging section of the docs should give more info http://www.visualmicro.com/page/User-Guide.aspx?doc=index
  
Back to top
WWW  
IP Logged
 
TimF
Junior Member
**
Offline


Posts: 11
Joined: Jan 8th, 2016
Re: Rookie debug struggles...
Reply #2 - Mar 30th, 2017 at 12:10pm
Print Post  
Okay, got it, thanks!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint