nim-lang / vscode-nim

A VS Code plugin for the Nim language
Other
63 stars 5 forks source link

Nim VS code attach to process #60

Closed ironpython2001 closed 1 month ago

ironpython2001 commented 1 month ago

I am using vscode as an ide for NIM. How to attach to running process in vscode for NIM.

Here is my vscode configuration. Is this correct ..? I am not able to attach to running process ``

{ "version": "0.2.0", "configurations": [ { "type": "lldb", "request": "attach", "name": "Attach", "pid": "${command:pickProcess}", // use ${command:pickProcess} to pick other users' processes "program": "${workspaceFolder}/bin/${fileBasenameNoExtension}.exe", "stopOnEntry" : true, } ] } ``

jmgomez commented 1 month ago

Like this:

    {
      "type": "lldb",
      "request": "attach",
      "name": "Attach test",
      "program": "${workspaceFolder}/pathToYourExec",
  },

Make sure you compiled it with debugger:native