VScode debugger not working ( Warning: Debuggee TargetArchitecture not detected, assuming x86_64 )

1

I'm playing with VScode and I just can't get to figure out how to make the debugger work.

    Warning: Debuggee TargetArchitecture not detected, assuming x86_64.
=cmd-param-changed,param="pagination",value="off"
[New Thread 8152.0x1c4c]
Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Symbols loaded.
Loaded 'C:\Windows\SysWOW64\KernelBase.dll'. Symbols loaded.
Loaded 'C:\Program Files\AVG\Antivirus\x86\aswhook.dll'. Symbols loaded.
Loaded 'C:\Windows\SysWOW64\msvcrt.dll'. Symbols loaded.
The program 'C:\Users\John\Documents\C\file_name.exe' has exited with 
code 0 (0x00000000).

Whenever I try to debug any codes, this error message comes up on the Debug console.

{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
    {
        "name": "(gdb) Launch",
        "type": "cppdbg",
        "request": "launch",
        "program": "${workspaceFolder}/file_name.exe",
        "args": [],
        "stopAtEntry": false,
        "cwd": "${workspaceFolder}",
        "environment": [],
        "externalConsole": true,
        "MIMode": "gdb",
        "miDebuggerPath": "C:/MinGW/bin/gdb.exe",
        "setupCommands": [
            {
                "description": "Enable pretty-printing for gdb",
                "text": "-enable-pretty-printing",
                "ignoreFailures": true
            }
        ]
    }
]

This is my launch.json file,

{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
    {
        "label": "build",
        "type": "shell",
        "command": "gcc",
        "args": [
            "file_name.c",
            "-o",
            "file_name.exe"
        ],
        "group": {
            "kind": "build",
            "isDefault": true
        },
        "presentation": {
            "reveal": "silent"
        },
        "problemMatcher": "$msCompile"
    }
]

and this is what my tasks.json file looks like.

I just got into programming and working with these json configuration files are really frustrating, any help would be appreciated.

c++
c
visual-studio-code
asked on Stack Overflow Oct 22, 2019 by Gus

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0