arduino esp32 jlink debugging libraries

Sysprogs forums Forums VisualGDB arduino esp32 jlink debugging libraries

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #26184
    adamtwatson
    Participant

    Arduino / esp32 / jlink  / debugging libraries

    I have noticed a problem that I cannot debug source code from libraries even if i tick the “Debug build disables optimization for:”  Arduino Libraries – debugging is crashing during single stepping – looks like the old inline issue like this “https://github.com/espressif/esp-idf/issues/2343

    weirdly I can debug just fine if i move the .cpp and .h files to the same directory as the sketch file??

    as i said before great system – just a few issues

    Adam Watson

    #26232
    support
    Keymaster

    Hi,

    No problem. Although fixing the Espressif’s GDB executable is outside of what we can offer as a part of VisualGDB, we have updated our Arduino project subsystem to allow editing common build parametersvia the regular VS Properties so that you could try the workaround described in the Github issue. Please try this build: VisualGDB-5.5.1.3313.msi

    Then open VS Project Properties for the Arduino project, go to C/C++ -> Optimization and set Inline Functions to No. This should affect both the main sketch and the libraries, working around the problem.

     

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