-
Notifications
You must be signed in to change notification settings - Fork 463
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
CMake: Debug Target does not find GDB #375
Comments
Duplicate of #242. |
I see the missing part. But I am not sure how we want to find gdb.
|
I think it's a start. You can more reliably get the compiler path by asking the CMake cache for the compiler, though. It may take a bit more heuristics to find the proper GDB, though. I'll think on it. |
Yes that is abetter search place, we can read the compiler back from CMake cache (C-Compiler) and search for a gdb with the same prefix. But we should add the possibility to override the automatic generation by a way to set a configuration name from launch.json. What is your opinion? |
I've been trying thinking about the debugging for a while. launch.json can be used perfectly well with CMakeTools, so I don't think it necessary to read back launch.json when doing quick debugging. I'd say doing automatic gdb discovery would be just fine for quick debugging. |
I would not read back Lauch.json I would only allow to configuration are configname in the settings to quicklaunch debuging with the button. |
done |
Brief Issue Summary
I try to use the extension in different projects. At the moment the debugging does not work out of the box. If I use the GCC then I get the following message, see figure below. I am not sure if there is a relation between debugger and kit needed. Is there some manual configuration needed? Or should it work out of the box?
Expected:
Apparent Behavior:
Platform and Versions
The text was updated successfully, but these errors were encountered: