locked
Error when debug langage C by gdb. Errror: The program has exited RRS feed

  • Question

  • User-1490685958 posted

    hello everyone,
    I have just installe VSC and i try to use cygwin and suyu but it can't debug. It show:
    Suyu:
    Breakpoint 1, 0x000000000040156d in main ()
    [Inferior 1 (process 3572) exited normally]
    The program has exited with code 0 (0x00000000).
    and
    cygwin:
    ERROR: Unable to start debugging. Unexpected GDB output from command "-exec-run". Error creating process /cygdrive/d/C C++/a.exe, (error 193).
    The program has exited with code 42 (0x0000002a).
    what should i do? Thank you very much
    My test is very easy:

    int main()
    {
    int a, b, sum;
    scanf("%d%d",&a, &b);
    sum = a+b;
    printf("%d + %d = %d",a, b, sum);
    return 0;
    }

    Saturday, March 3, 2018 11:18 AM

All replies

  • User283571144 posted

    Hi ilove3q,

    hello everyone,
    I have just installe VSC and i try to use cygwin and suyu but it can't debug. It show:
    Suyu:
    Breakpoint 1, 0x000000000040156d in main ()
    [Inferior 1 (process 3572) exited normally]
    The program has exited with code 0 (0x00000000).
    and
    cygwin:
    ERROR: Unable to start debugging. Unexpected GDB output from command "-exec-run". Error creating process /cygdrive/d/C C++/a.exe, (error 193).
    The program has exited with code 42 (0x0000002a).
    what should i do? Thank you very much
    My test is very easy:

    int main()
    {
    int a, b, sum;
    scanf("%d%d",&a, &b);
    sum = a+b;
    printf("%d + %d = %d",a, b, sum);
    return 0;
    }

    Welcome to asp.net forum.

    According to your description, I suggest you could try to follow below answer to check you have set the right setting in launch.json file.

    https://stackoverflow.com/a/46431429/7609093 

    Besides, this forum is mainly talking about the asp.net.

    If you have other issue with C used in visual studio code, I suggest you could try to ask a question in the visual studio code community.

    Url:

    https://code.visualstudio.com/community 

    Best Regards,

    Brando

    Monday, March 5, 2018 3:00 AM
  • User-1490685958 posted

    Thank you very much

    Friday, March 9, 2018 8:58 AM