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.
Uh oh!
There was an error while loading. Please reload this page.
-
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
BREAKPOINTSsection 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) orstopOnEntrywork, even if it does not display the source code (only the disassembled code), and usedbreakpoint list --verboseto see which file the function belongs to, e.g.with function breakpoint
main:Console is in 'commands' mode, prefix expressions with '?'. Launching: /Users/conversy/recherche/istar/code/djnn/smala/build/cookbook/gui/direct_manipulation/simplest/simplest_app Launched process 27084 breakpoint list --verbose Current breakpoints: 1: file = '/Users/conversy/recherche/istar/code/djnn/smala/build/cookbook/gui/direct_manipulation/simplest/simplest.cpp', line = 51, exact_match = 0 2: name = 'main' 2.1: module = /Users/conversy/recherche/istar/code/djnn/smala/build/cookbook/gui/direct_manipulation/simplest/simplest_app compile unit = simplest.cpp function = main location = /Users/conversy/recherche/istar/code/djnn/smala/cookbook/gui/direct_manipulation/simplest/simplest.cpp:25:2 address = 0x0000000100003554 resolved = true hardware = false hit count = 1with
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