Skip to content
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

Problems with using gdb debugger on MAC #1691

Closed
andreeis opened this issue Mar 1, 2021 · 6 comments · Fixed by #1739
Closed

Problems with using gdb debugger on MAC #1691

andreeis opened this issue Mar 1, 2021 · 6 comments · Fixed by #1739

Comments

@andreeis
Copy link
Contributor

andreeis commented Mar 1, 2021

Opened from comment in report #884.

Zrealshadow commented 3 hours ago
I still face this problem in MacOS Catalina 10.15.4
And the cmake-tool verison is 1.6.0

When i try to debug,
the log is:
[build] Starting build
[proc] Executing command: /snap/cmake/current/bin/cmake --build /home/hristo/Projects/GitHub/GunBox/GunBox/GunBox/build --config Debug --target GunBox_Game -- -j 10
[build] ninja: no work to do.
[build] Build finished with exit code 0
[debugger] Unable to automatically determine debugger corresponding to compiler: /usr/local/bin/g++-8
[main] Failed to generate debugger configuration

My cmake tool setting:

"C_Cpp.default.configurationProvider": "ms-vscode.cmake-tools",
"cmake.configureOnOpen":true,
"cmake.debugConfig": {
    "stopAtEntry": false,
    "MIMode": "gdb",
    "miDebuggerPath": "/usr/local/bin/gdb",
}

Any solution to this problem ?

@andreeis andreeis added this to the 1.7.0 milestone Mar 1, 2021
@andreeis
Copy link
Contributor Author

andreeis commented Mar 2, 2021

This is not a CMake Tools bug. We recommend that you open a report in the VSCode repository on GitHub: https://github.com/microsoft/vscode/issues.

@andreeis andreeis closed this as completed Mar 2, 2021
@andreeis
Copy link
Contributor Author

andreeis commented Mar 2, 2021

Appologies, that text was meant for closing a different report, not this one.

@andreeis andreeis reopened this Mar 2, 2021
@andreeis
Copy link
Contributor Author

andreeis commented Mar 2, 2021

Thank you for opening this report. We are going to fix this for the upcoming 1.7 release.

@timoscs
Copy link

timoscs commented Mar 23, 2021

Is there any workaround for this at the moment?

@andreeis
Copy link
Contributor Author

I am not sure it would work, but you can try to create an environment where lldb or lldb-mi would not be found in the path (hack the path environment variable). And also don't define miDebuggerPath (not an intuitive move, but I'm hoping it will go through a different code path that will enable you in the end to use gdb on mac).
We'll have a fix for this in 1.7 release and as soon as the fix is in I'll point you to a vsix to test (and unblock you) even earlier.

@andreeis
Copy link
Contributor Author

CMake Tools 1.7.0 was released today and it contains a fix for this issue. Upgrade the extension in VSCode and let us know if you encounter any other problems.

@github-actions github-actions bot locked and limited conversation to collaborators Jan 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants