Automatically run into Disassembly code at the end of debugging swift code, but I have used "-g" parameter!! #588
Replies: 2 comments 2 replies
-
How about you just press F5 to let it run till completion? Alternatively, you can kill the process with Shift-F5. |
Beta Was this translation helpful? Give feedback.
-
Why shouldn't it? There is code that runs before and after your main function and if you ask the debugger to step into it, this is what you get. Since there is no source code available, you are shown disassembly (or nothing, if you disable disassembly via showDisassembly=never). |
Beta Was this translation helpful? Give feedback.
-
Which OS: ubuntu-20.04.3-desktop-amd64
Which extension version: SourceKit-LSP v0.0.1
https://github.com/apple/sourcekit-lsp
Which LLDB version: CodeLLDB v1.6.10
Which VSCode version: code_1.62.3-1637137107_amd64
launch.json:
tasks.json:
Press F5 to start debugging and hit the breakpoint:
After pressing F10(Step Over) or F11(Step Into), automatically open @__libc_start_main and stop at line 64: 7FFFF77F30B3: 89 C7 movl %eax, %edi
If run to line 65: 7FFFF77F30B5: E8 06 2B 02 00 callq 0x7ffff7815bc0 ; exit
Choose F10(Step Over) will finish debugging,
but choose F11(Step Into) will open @EXIT and stop at line 3: 7FFFF7815BC0: F3 0F 1E FA endbr64
and if keep pressing F11(Step Into) for a very long time, the debugging will finish after pressing F11(Step Into) at @_exit line 18: 7FFFF78B22C4: 0F 05 syscall
How can lldb directly finish debugging after executing the last line source code like debugging C/C++ even like debugging Python??
Beta Was this translation helpful? Give feedback.
All reactions