VS Arduino
Visual Micro >> Hardware Debugging (GDB, GDB WiFi, GDB Stub) >> The value of miDebuggerPath is invalid
https://www.visualmicro.com/forums/YaBB.pl?num=1601012836

Message started by Hanz on Sep 25th, 2020 at 5:47am

Title: The value of miDebuggerPath is invalid
Post by Hanz on Sep 25th, 2020 at 5:47am
I try to debug my code on arduino UNO, following the steps like the tutorial created by Virtual Micro .

(https://www.instructables.com/id/Arduino-Uno-GDB-Debugging/) ;

When I run my very simple code, viual studio return "Unable to strart debugging.The value of  miDebuggerPath is invalid". Please Help!!!!!!!!!1 :'( :'(
AnotaciG_n__1_.png ( 132 KB | 25 Downloads )

Title: Re: The value of miDebuggerPath is invalid
Post by Simon@Visual Micro on Sep 25th, 2020 at 9:18am
Thanks for the report.

It appears that the GDB EXE required to run this is missing in the latest toolchain (7.3.0-atmel3.6.1-arduino7) for v1.8.3 of "Arduino AVR Boards"
It is available in (7.3.0-atmel3.6.1-arduino5) for v1.8.2 of "Arduino AVR Boards", and v1.8.6 of "Arduino megaAVR Boards", but understand using the latest AVR core is often desirable.

The options to resolve this are:
1) Roll back the AVR code to v1.8.2

Or

2) Install a secondary core with the same tools:-
Install v1.8.6 of "Arduino megaAVR Boards" from the Micro Explorer window this will add the toolset, and press ReScan when installation has completed.
Then if you right click on the project > Add > Local Board.txt
And add the below entry to the file, and change the "MyUsername" to match your setup:
[code]tools.gdbstub.path=C:\Users\MyUsername\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5/bin[/code]

Now if you try attaching again this should work as expected.

We will update when we have an update which resolves this more easily.

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