Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
Support requests without the output above may be impossible to answer, so please help us to help you
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
Breakpoint with "Continue execution" not set, but not pausing (Read 1088 times)
tumbolia29
Junior Member
**
Offline



Posts: 10
Breakpoint with "Continue execution" not set, but not pausing
Jul 23rd, 2018 at 7:12am
 
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
 
Visual Micro
Administrator
*****
Offline



Posts: 10617
United Kingdom
Re: Breakpoint with "Continue execution" not set, but not pausing
Reply #1 - Jul 23rd, 2018 at 10:35am
 
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
Re: Breakpoint with "Continue execution" not set, but not pausing
Reply #2 - Jul 23rd, 2018 at 3:15pm
 
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
 
Visual Micro
Administrator
*****
Offline



Posts: 10617
United Kingdom
Re: Breakpoint with "Continue execution" not set, but not pausing
Reply #3 - Jul 23rd, 2018 at 3:34pm
 
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
Re: Breakpoint with "Continue execution" not set, but not pausing
Reply #4 - Jul 23rd, 2018 at 3:39pm
 
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 C:\Users\marke\AppData\Local\Temp\VMBuilds\NODEMC~1\ESP826~1\Release/NODEMC~1.BI
N to flash at 0x00000000
Back to top
 
 
IP Logged
 
tumbolia29
Junior Member
**
Offline



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

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



Posts: 10617
United Kingdom
Re: Breakpoint with "Continue execution" not set, but not pausing
Reply #6 - Jul 23rd, 2018 at 3:44pm
 
Thanks, is the configuration on the tool bar set to Debug or Release?
Back to top
 
WWW  
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10617
United Kingdom
Re: Breakpoint with "Continue execution" not set, but not pausing
Reply #7 - Jul 23rd, 2018 at 3:45pm
 
Oh just seen your last message. Great Smiley
Back to top
 
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print