You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Under my mac, I wrote a simple one-line printing C program.
`#include<stdio.h>
int main()
{
printf("hello.\n");
return 0;
}`
Describe the bug
OS and Version: macOS Mojave
VS Code Version:1.29.1
C/C++ Extension Version: 0.20.1
*I can run the program but when I do debug, it just shows the .out file does not exist! Hope you guys can help me out, I am new to VSC, and find it really handy.
To Reproduce Please include a code sample and launch.json configuration.
** the tasks.json **
** the launch.json **
The text was updated successfully, but these errors were encountered:
In launch.json you don't need those args, but you do need "MIMode": "lldb".
I wasn't able to reproduce your error on my MacBook. Can you verify that clang is actually creating hello.out at the location shown in the error message? You may also want to check the Terminal window to see if there were any errors during compilation.
In launch.json you don't need those args, but you do need "MIMode": "lldb".
I wasn't able to reproduce your error on my MacBook. Can you verify that clang is actually creating hello.out at the location shown in the error message? You may also want to check the Terminal window to see if there were any errors during compilation.
Thanks for you reply @bobbrow . I tried as you suggested, but things don't work out. first, I modify the launch.json as follows:
second, i can successfully compile with gcc and run the program:
BUT, WHEN DEBUG WITH GDB, THINGS WENT WRONG Is it possible that some authentication thing keep me from using gdb on my MAC ?
Type: Debugger
Under my mac, I wrote a simple one-line printing C program.
`#include<stdio.h>
int main()
{
printf("hello.\n");
return 0;
}`
Describe the bug
*I can run the program but when I do debug, it just shows the .out file does not exist!
Hope you guys can help me out, I am new to VSC, and find it really handy.
To Reproduce
Please include a code sample and
launch.json
configuration.** the tasks.json **
** the launch.json **
The text was updated successfully, but these errors were encountered: