-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vscode Debugger can't break somewhere #777
Comments
Hm, that's weird. The debugger implementation of VSCode is not part of modm, so I don't know what the limitations are. Did you "Upload (Debug)" and then "Debug (Debug)"? The profiles must match otherwise the debugger will get confused. The inlining will transform the |
Did you resolve this bug @shikihane? |
II have also experienced the same problem, could be reproduced even without VSCode with GDB in tui mode. (For example, I wasn't able to set breakpoints in the whole main.cpp because "line does not exist".) |
Thank you for your concern about this issue, I have been busy with other things lately and I will focus on it these days. |
That's good hint, but I tried multiple versions like arm-gcc 8,9,10 as well as also on win7,win10.Neither of them supports the tui mode.This seems to be related to the ncurses library and solving that is frustrating. |
This are the debug compile flags used by modm: |
Which flags does the STM32 Cube project use (by default)? |
If you comment out the The issue with this is that is modifies the timing behavior significantly from Therefore I chose to use
Can you try if this improves enough if you only remove the |
Question:
I import modm:ide:vscode into project and build and programme is properly.But when debugging, vscode cannot break the breakpoint inside the main of inside. The UI of vscode as follows:
At first I suspect that the symbol table was missing , so i have tried adding the compilation option -g and adding build option profile=debug, but is useless.
As for other funcionts of the debugger, like next and step can be used.
Target Broad: STM32F746NG Disco.
Tool Chain: arm-none-eabi-g++ 10.x.
Development Environment: Windows 7 + vscode + git bash
Code: I followed the tutorial create a project with a app folder and ext folder, the code of main.cpp copy on xxx_broad/example/blink/main.cpp. I don't modify any.
The text was updated successfully, but these errors were encountered: