No line in file (from break-insert)
See original GitHub issueI’m not certain if this is an issue related to cortex-debug or not, since it seems like it might be a configuration issue, but it a problem I have not had with VS Code before. (My previous experience with the debugger is through PlatformIO. This is my first try at building for ARM without PlatformIO.)
I’m using Windows 10, VS Code with the C++ extension, and a J-Link EDU Mini.
When I start a debug session with cortex-debug, VS Code opens my main.cpp
and the program halts at the start of the main
function as expected. However, regardless of what line a breakpoint is set on, a message such as the following will appear.
"No line 19 in file "c:\Projects\Mbed\blinky1\main.cpp". (from break-insert "c:\\Projects\Mbed\\blinky1\\main.cpp:19")
What’s really odd about this is that I can step through the code and VS Code seems to recognize the lines. For example, if you look at the call stack in this screenshot where I stepped through to line 19, VS Code clearly realizes that the program is currently halted on line 19. Below that in “breakpoints” it shows that there should be a breakpoint at line 19, but then there’s that error message on the bottom right.
I’ve dug through the various cmake logs and it appears that the proper flags are set, and (as shown in the screenshot) it appears to be reading the symbols from the binary.
Any suggestions as to what is going on here would be appreciated!
Issue Analytics
- State:
- Created 2 years ago
- Comments:12 (6 by maintainers)
I was looking at this and it does not list it
Version dependent I guess.
I look forward to hearing your results!