VS Arduino
Visual Micro >> Hardware Debugging (GDB, GDB WiFi, GDB Stub) >> Switched projects - hardware debugging stopped working :(
https://www.visualmicro.com/forums/YaBB.pl?num=1645645314

Message started by HomerRamone on Feb 23rd, 2022 at 7:41pm

Title: Switched projects - hardware debugging stopped working :(
Post by HomerRamone on Feb 23rd, 2022 at 7:41pm
Having got the debugger working I thought I was all set.
I have a couple of projects in progress and was trying to track down a bug in one of them.

Previously ive build and run this project on a regular esp 32 and used serial debugging. But being able to BP a function and step will be super handy here.
So I switched over the boards and restarted VS.
Changed the settings for board and debugger.
No luck. Then I remembered board.txt. So I followed the same process of creating the file, pasted the text.
Added breakpoint and tried to debug.

Starts initializing the debugger then pops a dialog:

debugger.png ( 5 KB | 3 Downloads )

Title: Re: Switched projects - hardware debugging stopped working :(
Post by Simon@Visual Micro on Feb 24th, 2022 at 10:03am
Thanks for the report.

The Troubleshooting pages below may help identify the issue:
https://www.visualmicro.com/page/Troubleshooting-Debugging.aspx
https://www.visualmicro.com/page/Troubleshooter-for-Debugging-an-Arduino-Sketch-in-vMicro.aspx

If not then please enable the below properties:
vMicro > Compiler > Verbose
vMicro > Compiler > Show Build Properties
vMicro > Uploader > Verbose

And then attach as text files the output from:
1) The Output > Micro Build Window, after completing a full build, and running Debug > Attach to Process
2) In the build folder there should be a log created <<projectname>>_OpenOCD.log
https://www.visualmicro.com/page/Troubleshooter-for-Debugging-an-Arduino-Sketch-in-vMicro.aspx#cantFindOpenOCDLogFile

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