question

irshadahamdok-5993 avatar image
1 Vote"
irshadahamdok-5993 asked irshadahamdok-5993 edited

Error setting up debug mode with CMake in Visual Studio Code

I'm currently using Visual Studio and CMake to run my .cpp codes. I have been able to compile my .cpp codes. My issue is that when I hit Ctrl + Fn + F5 to launch debug mode, I get the following error:

104319-tfut9.png

My launch.json is as follows:

104382-ifhrs.png

Here are what I tried to do to fix the issue, and none of them worked:

I added "miDebuggerPath": "/Users/name/.vscode/extensions/ms-vscode.cpptools-0.20.1/debugAdapters/lldb/bin/lldb-mi" to my launch.json, but it seems that CMake ignores this and continued to look for lldb in usr/bin, as seen below:

104422-fmgry.png

I followed the instructions here: https://github.com/lldb-tools/lldb-mi. Specifically, I used brew install llvm and cmake build . to install LLVM. Then I used git clone and cmake build . to install lldb-mi.

I re-installed Visual Studio Code

None of my attempts had any success with launching my VSCode debugger through CMake. I would really appreciate some help.

Thanks!


c++vs-generaldotnet-visual-basicvs-debugging
ifhrs.png (55.9 KiB)
fmgry.png (18.6 KiB)
tfut9.png (45.5 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

PengGe-MSFT avatar image
0 Votes"
PengGe-MSFT answered

Hi @irshadahamdok-5993

Welcome to Microsoft Q&A!

Thank you for taking time to post this issue in Microsoft Q&A forum. Visual Studio Code is currently not supported in the Microsoft Q&A forums, the supported products are listed over here: https://docs.microsoft.com/en-us/answers/products/ (more to be added later on).

You can ask questions and search for answers on Stack Overflow and enter issues and feature requests directly in our GitHub repository.
Thanks for your understanding.

Sincerely,
Peng


If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.