Breakpoint not getting hit

Software Environment:

  1. GDB debugger is present in C:\MinGW\bin\gdb.exe and installed from
  2. The Theia IDE is downloaded from

When I run some sample cpp file (say HelloWorld.cpp) by starting the debugger, it launches my exe (HelloWorld.exe) but the breakpoint is disabled automatically.

When I looked into log file, I am getting this error. -break-insert: Unknown option ``-source’’

Below is the screen shot of error shown in tool tip as well.

Below is the launch.json configuration file content.


    "name": "(gdb) Launch demo",

    "type": "gdb",

    "request": "launch",

    "program": "C:\\Renesas\\C Compile Demo\\HelloWorld.exe",

    "args": [],

    "stopAtEntry": false,

    "cwd": "${fileDirname}",

    "environment": [],

    "externalConsole": false,

    "MIMode": "gdb",

    "outputCapture": "std",

    "verbose": false,

    "logFile": "C:\\tmp\\logVSCode.txt",

    "miDebuggerPath": "C:\\MinGW\\bin\\gdb.exe",

    "setupCommands": [


            "description": "Enable pretty-printing for gdb",

            "text": "-enable-pretty-printing",

            "ignoreFailures": true



            "description":  "Set Disassembly Flavor to Intel",

            "text": "-gdb-set disassembly-flavor intel",

            "ignoreFailures": true




Thanks in advance.