Debug Visual Studio Code on MacOS

111 views
Skip to first unread message

Adnan Salahuddin

unread,
Jun 4, 2021, 12:20:50 AM6/4/21
to ns-3-users
Dear,

I am unable to run debug breakpoint on visual studio code. I am getting an error pop up message and it says:

"Debugger executable '/usr/local/bin/gdb' is not signed. As a result, debugging may not work properly."

In default lunch.json as below:

 {
  "name": "(gdb) Launch from scratch",
  "type": "cppdbg",
  "request": "launch",
  "program": "${workspaceFolder}/build/scratch/${fileBasenameNoExtension}",
  "args": [],
  "stopAtEntry": false,
  "cwd": "${workspaceFolder}",
  "preLaunchTask": "Build",
  "environment": [
    {
      "name": "LD_LIBRARY_PATH",
      "value": "./build/lib/"
    }
  ],
  "externalConsole": true,
  "MIMode": "gdb",
  "miDebuggerPath": "/usr/local/bin/gdb",
  "setupCommands": [
    {
      "description": "Enable pretty-printing for gdb",
      "text": "-enable-pretty-printing",
      "ignoreFailures": true
     }
  ]
},

Could you please help me to solve this issue?
Thanks

Screenshot 2021-06-04 at 9.11.37 AM.png

Adnan Salahuddin

unread,
Jun 6, 2021, 11:37:32 PM6/6/21
to ns-3-users
Any Idea?
Reply all
Reply to author
Forward
0 new messages