VS Arduino
Visual Micro >> Usb/Serial/WiFi Debugging >> Breakpoint with "Continue execution" not set, but not pausing
https://www.visualmicro.com/forums/YaBB.pl?num=1532326374

Message started by tumbolia29 on Jul 23rd, 2018 at 6:12am

Title: Breakpoint with "Continue execution" not set, but not pausing
Post by tumbolia29 on Jul 23rd, 2018 at 6: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!

Title: Re: Breakpoint with "Continue execution" not set, but not pausing
Post by Visual Micro on Jul 23rd, 2018 at 9: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?



Title: Re: Breakpoint with "Continue execution" not set, but not pausing
Post by tumbolia29 on Jul 23rd, 2018 at 2: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.

Title: Re: Breakpoint with "Continue execution" not set, but not pausing
Post by Visual Micro on Jul 23rd, 2018 at 2: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

Title: Re: Breakpoint with "Continue execution" not set, but not pausing
Post by tumbolia29 on Jul 23rd, 2018 at 2: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.BIN to flash at 0x00000000

Title: Re: Breakpoint with "Continue execution" not set, but not pausing
Post by tumbolia29 on Jul 23rd, 2018 at 2:43pm
Ah, problem solved.  The Release/Debug option had been set to "Release."

Operator error!  Sorry. Thanks for your help.

Title: Re: Breakpoint with "Continue execution" not set, but not pausing
Post by Visual Micro on Jul 23rd, 2018 at 2:44pm
Thanks, is the configuration on the tool bar set to Debug or Release?

Title: Re: Breakpoint with "Continue execution" not set, but not pausing
Post by Visual Micro on Jul 23rd, 2018 at 2:45pm
Oh just seen your last message. Great :)

VS Arduino » Powered by YaBB 2.6.12!
YaBB Forum Software © 2000-2024. All Rights Reserved.