cancel
Showing results for 
Search instead for 
Did you mean: 

GDB in TouchGFX has a bug in VSCode and won't set breakpoints

nico23
Senior

It turns out the GDB shipped with TouchGFX 4.25.00 has an issue where it can't set the breakpoint in VSCode when the software is running.

The only workaround is to set the breakpoints before launching the debug.

The issue is reported it https://github.com/microsoft/vscode-cpptools/issues/13191#issuecomment-2787932838

To fix the issue you can use the GDB shipped with the latest version of MYSYS2 https://packages.msys2.org/packages/mingw-w64-x86_64-gdb

You just run on the terminal pacman -S mingw-w64-x86_64-gdb 

In the launch.json you set "miDebuggerPath": "C:/msys64/mingw64/bin/gdb.exe", (or the location where it has been installed) and in the task.json in "env": {"PATH": "C:/msys64/mingw64/bin;"}

 

2 REPLIES 2
LouisB
ST Employee

Hello @nico23,

Thanks for your workaround, I will talk to the team about that.
You use VScode to debug on target ?

 

BR,

Louis BOUDO
ST Software Developer | TouchGFX

Hi Louis,

No, to debug the target I'm using CubeIDE.

I'm using VSCode to debug the Simlutor on my machine as using Visual Studio is not suitable for me