ESP32: "Warning: could not set a breakpoint on main. 'Step into new instance' —

Sysprogs forums Forums VisualGDB ESP32: "Warning: could not set a breakpoint on main. 'Step into new instance' —

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #29963
    RolfSt
    Participant

    I load my

    ESP-32 NodeMCU Developmantboard from AZ-Delivery via

    OLMEX ARM-SB-OCD-H

    and get

    Warning: could not set a breakpoint on main. ‘Step into new instance’ will not work.

    Nevertheless, debgging seems to work. What does this warning mean ?

    I’m on the porting a STM32 app – done with VsualGDB – to ESP32 and try as a first step

    Blink as built in.

     

    Another question: should optimization set be set to -Og ?

    #29966
    support
    Keymaster

    Hi,

    It looks like your technical support has expired. Please feel free to renew your support here and we will be happy to answer your questions.

    #29994
    RolfSt
    Participant

    So now I have updated my license

    #29995
    support
    Keymaster

    Thanks for renewing your license.

    This message comes from the VisualGDB logic responsible for the “Step into new instance” command. It would normally set a breakpoint in main() and if you start debugging with F10 instead of F5, the program would stop once this breakpoint triggers.

    Because ESP32 programs use app_main() instead of main(), this functionality won’t work by default. You can easily change the name of the function via VisualGDB Project Properties -> Advanced GDB Settings, or simply ignore the message if you are not using the “Step into new instance” command.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.