I have an embedded stm32 project that compiles with Makefile. The makefile is written for linux and doesn’t work in Windows but works fine in WSL.
To make it work in VisualGDB I’ve created a new project -> “Import project built with command-line tools” -> “Specify a build command line manually”.
For build command I used wsl.exe with parameter make.
It builds fine. I can flash it and debug it but only in disassembly mode. I can’t debug from source code or place any breakpoint. On any breakpoint it says “cannot resolve breakpoint location”.
In disassembly window I see code lines and strange path to the source file:
— C:\proj\bf\C:\proj\bf\src\main\main.c ———————————-
How to fix this?