-
Notifications
You must be signed in to change notification settings - Fork 428
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to find GDB in default search path and /usr/local/bin/lldb-9 #1060
Comments
On Windows and Ubuntu I am not able to get any "cmake.debugConfig" settings to be ignored. I will try on MAC shortly, although I don't think something may reproduce only because of this. |
Reply:
[build] Starting build I don't know what the last message means. I have no "/usr/local/bin/lldb-9".
|
Finally, I find the lldb path in macOS is: /usr/local/opt/llvm/bin. (1) create a soft link: lldb-9 -> /usr/local/opt/llvm/bin/lldb Now, I can use CMake Tools's Debug, but it can't break as known.(https://stackoverflow.com/questions/58329611/vscode-macos-catalina-doesnt-stop-on-breakpoints-on-c-c-debug) |
Make CMake Tools Debug BREAKSTOP Success on Xcode 11.3.1!!! Question:We have lldb under /Applications/Xcode.app/Contents/Developer/usr/bin/, but we don't have lldb-mi. Solution:Compile lldb-mi for Xcode 11.3.1 Steps:(1) sudo vim /etc/paths Set soft link(no need to set cmake.debugConfig anymore)cd /usr/local/bin Others:Because I Use g++ under /usr/local/bin/, so after compiling, I modified /etc/paths as: refs:https://forums.developer.apple.com/thread/125482 |
Unfortunately Apple doesn't distribute lldb-mi anymore. The cpptools extension is almost ready to start distributing a copy of it with the extension. At that point we can start pointing to that one by default. |
|
I believe I have a fix for this in PR #1102 |
CMake Tools 1.4.0 Beta is available on GitHub. Please try it out and let us know if you encounter any issues. |
This fix is available in CMake Tools #1.4.0 which has been released. |
How to configure if I need to compile the program using GCC and debug with GDB. |
That should work. Double check if the source code file where you want to hit the breakpoint is compiled with debug information (-g flag). As an experiment, also add "stopAtEntry" inside cmake.debugConfig and set it to true, see if that generates any breakpoint hit at startup. |
works for me , Great thanks~ |
When I use CMake Tools's Debug It says "Unable to find GDB in default search path and /usr/local/bin/lldb-9."
I don't know where to set gdb path for the CMake Tools Plugin. I think this is an issue.
My Env:
macos: 10.15.3
Xcode: 11.3.1
/usr/local/opt/llvm/bin/lldb -v: 9.0.0
cmake: 3.15.3
make:4.3
gdb: 8.3
g++: 9.2.0_3
vs code: 1.42.0
cmake tools: 1.3.0
When I add in settings.json:
"cmake.debugConfig": {
"MIMode": "gdb",
"miDebuggerPath": "/usr/local/bin/gdb",
}
it does not take effect.
The text was updated successfully, but these errors were encountered: