Replies: 3 comments 2 replies
-
Did you set up source mapping? You can use |
Beta Was this translation helpful? Give feedback.
-
Yes, I did try to setup source mapping, and sometimes the breakpoint is hit, but the source is not displayed, I only get assembly.
well, does it mean there is no debug info in the binary? |
Beta Was this translation helpful? Give feedback.
-
Does the source file exist at that path? Can you do |
Beta Was this translation helpful? Give feedback.
-
Hi,
I set up a breakpoint in the source code of a generated source file (generated from another source). The generated source code is in a
build/
directory.When I launch the debugger, the entry in the
BREAKPOINTS
section of VSCode is grayed out, with a tooltip saying "Resolved location: 0".I had a look at the wiki's troubleshootings topic on that matter, tried everything, to no avail.
I actually could make the function breakpoint (with
main
, as it belongs to the faulty generated source file) orstopOnEntry
work, even if it does not display the source code (only the disassembled code), and usedbreakpoint list --verbose
to see which file the function belongs to, e.g.with function breakpoint
main
:with
stopOnEntry
:But at this point I do not know what to do.
The thing is, I could make some similar setup work in another project, but I cannot figure out the difference.
OS: MacOS 12.4
VSCode version: 1.71.0 (Universal)Commit: 784b0177c56c607789f9638da7b6bf3230d47a8c
CodeLLDB version: v0.2.3
Compiler: clang Apple clang version 13.1.6 (clang-1316.0.21.2.5) arm64-apple-darwin21.5.0
Debuggee: lldb-1316.0.9.46
Beta Was this translation helpful? Give feedback.
All reactions