Debugging C++ on Mac with VSCode

preview_player
Показать описание
Debugging C++ on Mac with VSCode
Using macOS Catalina Version 10.15.7
Using VS Code Version: 1.53.0

Рекомендации по теме
Комментарии
Автор

Was far too lazy to read through it all. This still works 3 years later - Thanks!

salzstange
Автор

where shall I type the input when step to the statement like cin or printf in a debug mode?

UCbZK
Автор

show me :

Warning: Debuggee TargetArchitecture not detected, assuming x86_64.
ERROR: Unable to start debugging. Unexpected LLDB output from command "-exec-run". process exited with status -1 (attach failed ((os/kern) invalid argument))
The program c++/HelloWorld' has exited with code 42

Raouf_
Автор

How to debug on mac if some functions are in other forlders? How can i make, that it will go into this folders and go through the function there?

_MaiT
Автор

Thank you! awesome tutorial!I looking for long time the example even sometimes almost gave up.

gunsnroses
Автор

did not work, It shows me the message below when I try to debug, and I am using M2 macbook pro:
Warning: Debuggee TargetArchitecture not detected, assuming x86_64.
ERROR: Unable to start debugging. Unexpected LLDB output from command "-exec-run". Command 'exec-run'. Invalid process during debug session
The program '/Users/Debugger/helloworld' has exited with code 42

Andrew-dfey
Автор

how can i setup my sidebar with that debugging drop down menu?

jhordotv
Автор

Does this tutorial configure it for the long term or does this need to be configured for every new project?

idc
Автор

Excuse me, My mac is m1 chip, I do not how to fix this, please help me :
Warning: Debuggee TargetArchitecture not detected, assuming x86_64.
ERROR: Unable to start debugging. Unexpected LLDB output from command "-exec-run". process exited with status -1 (attach failed ((os/kern) invalid argument))
The program has exited with code 42

lynguyenhoang
Автор

Does taking input in debug console work?

tanweerashif
Автор

thanks for your video, but with your tutorial I cannot debug C file. I see this problem and I dont know how to fix it: clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]

ruslvn
Автор

Followed all the steps and seems to be getting an error in the debug console.
Not sure if its BigSur or what.

Warning: Debuggee TargetArchitecture not detected, assuming x86_64.
ERROR: Unable to start debugging. Unexpected LLDB output from command "-exec-run". process exited with status -1 (attach failed ((os/kern) invalid argument))

FazzoHD
Автор

I have the same 3 error messages although the program works fine. Does anybody know why it happens and how to get rid of that?

nanshan
Автор

when i debug i get this to continue : muss installed @category:debuggers cppdbg ; but i didn't found this extention

inco__gnito__channel
Автор

Bro i swear...i don't know what to do more, nothing fucking works bro....

randomlol