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??
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-188.8.131.5213.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.