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 with "Continue execution" not set, but not pausing (Read 3360 times)
tumbolia29
Junior Member
**
Offline


Posts: 10
Joined: Jun 29th, 2018
Breakpoint with "Continue execution" not set, but not pausing
Jul 23rd, 2018 at 6:12am
Print Post  
Hi, not sure what I'm doing wrong (this feature worked before for me on another project) but now, when I try to put a simple breakpoint in the main .ino file, execution doesn't pause (Actions = set, Continue execution = not set).  Is there some setting or way of compiling (or whatever) that causes these breakpoints to quit functioning?

Also, could I expect a breakpoint to function if I place it inside a library file (.cpp file included in the project)? I haven't seen that work as I would have expected. 

Environment is Visual Studio + vMicro, board is NodeMCU 1.0 (ESP-12E Module).

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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Breakpoint with "Continue execution" not set, but not pausing
Reply #1 - Jul 23rd, 2018 at 9:35am
Print Post  
Hi,

I think you can only debug lib sources if they are local project libraries

Is you breakpoint on an IF statement or s simple line of code. The points on an IF will execute inside the IF not before.

Is debug enabled and starting? 

Are trace messages showing for breakpoints?

Does you code use serial? If so at what speed?


  
Back to top
WWW  
IP Logged
 
tumbolia29
Junior Member
**
Offline


Posts: 10
Joined: Jun 29th, 2018
Re: Breakpoint with "Continue execution" not set, but not pausing
Reply #2 - Jul 23rd, 2018 at 2:15pm
Print Post  
Breakpoint is on a simple line of code. I had noticed before that that line is executed before the break occurs. Debug is hopefully enabled: under vMicro-->Debugger, Automatic Debugging (Release/Debug) is set. Nothing else set in that area except "In Break Live View" and "Performance Statistics."

Serial port is working for debug messages (Serial.print stuff), at 9600 bps.

What are trace messages for breakpoints?  In Micro Build output window (where the compile/upload messages are), i don't see anything about breakpoints. When it had been working before, it would say "paused at ...." when the breakpoint was hit. Thanks.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Breakpoint with "Continue execution" not set, but not pausing
Reply #3 - Jul 23rd, 2018 at 2:34pm
Print Post  
Okay first let see if debug is enabled.

Please build and post the output which tells us if a debug build is being made.

Thanks
  
Back to top
WWW  
IP Logged
 
tumbolia29
Junior Member
**
Offline


Posts: 10
Joined: Jun 29th, 2018
Re: Breakpoint with "Continue execution" not set, but not pausing
Reply #4 - Jul 23rd, 2018 at 2:39pm
Print Post  
Hi Tim, if the "Micro Build" window is supposed to indicate that a debug build is being made, then that's the problem, because i don't see that. I only see "Compiling <sketch name> for <board name>": 

Compiling 'NodeMCUStepperTest1' for 'NodeMCU 1.0 (ESP-12E Module)'
Program size: 254,995 bytes (used 24% of a 1,044,464 byte maximum) (7.67 secs)
Minimum Memory Usage: 33504 bytes (41% of a 81920 byte maximum)
 
Uploading 'NodeMCUStepperTest1' to 'NodeMCU 1.0 (ESP-12E Module)' using 'COM5'
Uploading 259136 bytes from N to flash at 0x00000000
  
Back to top
 
IP Logged
 
tumbolia29
Junior Member
**
Offline


Posts: 10
Joined: Jun 29th, 2018
Re: Breakpoint with "Continue execution" not set, but not pausing
Reply #5 - Jul 23rd, 2018 at 2:43pm
Print Post  
Ah, problem solved.  The Release/Debug option had been set to "Release."

Operator error!  Sorry. Thanks for your help.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Breakpoint with "Continue execution" not set, but not pausing
Reply #6 - Jul 23rd, 2018 at 2:44pm
Print Post  
Thanks, is the configuration on the tool bar set to Debug or Release?
  
Back to top
WWW  
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Breakpoint with "Continue execution" not set, but not pausing
Reply #7 - Jul 23rd, 2018 at 2:45pm
Print Post  
Oh just seen your last message. Great Smiley
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint