Is it possible to debug clang build?
See original GitHub issueHi, sorry if this is duplication, I tried to read similar issues but still can’t get it. I used gcc kit, build/debug worked perfectly. Now I’m using Clang 10 kit, build is OK but I can’t debug it. First attempt was without any changes to project, log:
[proc] Executing command: /usr/bin/lldb-mi-10 --version
[proc] Executing command: /usr/bin/gdb-10 --version <--- gdb-10 o_0 ??
[proc] Executing command: /usr/bin/lldb-10 --version
[proc] Executing command: /usr/bin/lldb-10 --version
And then it hangs with output:
warning: ignoring unknown option: --interpreter=mi
warning: ignoring unknown option: --tty=/dev/pts/2
I guessed that lldb is not supported at atll and I tried to use “cmake.debugConfig”: {“miDebuggerPath”: “/usr/bin/gdb” and it didn’t work.
- Is it ever possible to use lldb out of the box?
- Is it possible to build with clang and debug with gdb?
- Operating System: Ubuntu 18.04
- CMake Version: 3.16
- VSCode Version: 1.44.2
- CMake Tools Extension Version: 1.3.1
- Compiler/Toolchain: Clang 10
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Debugging C with Clang compiler and LLDB - Developer files
Just an easy and quick tutorial about how to debug C code using clang. I am using Mac OS X 10.11.1 “El Capitan”...
Read more >Debugging Clang
There's comprehensive high-level documentation for LLVM and Clang. However, the further down you dig the more difficult things get.
Read more >How to debug clang for learning? - Beginners - LLVM Discourse
The clang driver will fork itself into a subprocess. You have two ways to achieve what you want: Disable the forking behavior by...
Read more >Hacking on clang
Debugging · Many LLVM and Clang data structures provide a dump() method which will print a description of the data structure to stderr....
Read more >Suggestions to debug a forever running clang compile ...
Not related to debugging, but just fwiw, D120295 fixes the specific clang command hangs. barrelshifter February 22, 2022, 6:14pm ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I am on version 1.4.1 and can still reproduce this with lldb 10. I tried to set:
then come the error:
Duplicate of #1060