简体   繁体   中英

How can I debugg c code in the terminal inside VSCode?

I've installed the VSCode in my mac (Big Sur) and I can not run code inside VSC's terminal. I've searched online and I've tried some things but I didn't found any error like mine. Is that supposed that everytime I try to debugg my code it appears like a pop-up asking for permission of my desk's files? ( pop-up )

It should show the message "Hello World." and it doesn't do anything. ( Image 1 )

I've tried to put "//" before ""console": "externalTerminal"," because it showed an error but it continues not working. ( Image 2 )

If someone could help me I would be very appreciated:)

Try locating your.exe directly

something like this:

 "program": "${workspaceFolder}\\directory\\file.exe"

I think this should work

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM