Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Re: GDB debugging in Visual Studio 2017 (Read 495 times)
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2704
Joined: Feb 13th, 2019
Re: GDB debugging in Visual Studio 2017
Apr 2nd, 2020 at 2:02pm
Print Post  
This will be resolved in an upcoming release.

To work around this in the meantime:-
1) Add a Local board.txt to the project (Right Click Project > Add > Add Local Board.txt)
2) Paste the below into the file and save it
Code
Select All
# Debug Overrides for Arduino Zero/SAMD for OpenOCD
tools.gdb.path={runtime.tools.arm-none-eabi-gcc-7-2017q4.path}/bin/
tools.gdb.cmd=arm-none-eabi-gdb
tools.gdb.cmd.windows=arm-none-eabi-gdb.exe
tools.gdb.debug.pattern="{path}/{cmd}"
tools.gdb.server=openocd
tools.openocd.debug.address=localhost:3333
tools.openocd.path={runtime.tools.openocd-0.10.0-arduino7.path}
tools.openocd.cmd=bin/openocd
tools.openocd.cmd.windows=bin/openocd.exe
tools.openocd.debug.pattern= -d2 -f "{runtime.platform.path}/variants/{build.variant}/{build.openocdscript}" -c "init"
debug.tool=gdb 


3) Leave all other selections for Arduino Zero, and EDBG debugging, and try attaching the debugger again.

  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Re: GDB debugging in Visual Studio 2017
Reply #1 - Jun 27th, 2020 at 11:26pm
Print Post  
This Topic was moved here from GDB Debugging [move by] Visual Micro.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint