getcursor / cursor

The AI Code Editor
https://cursor.com
23.12k stars 1.47k forks source link

Not really an Issue, trying to bring attention. Cannot debug DOTNET. Not your fault #691

Open mazer-rakham opened 1 year ago

mazer-rakham commented 1 year ago

image

Daxter98 commented 1 year ago

I have the same "problem". Tried using the C# extension from Open VSIX Registry, loads correctly but I can't make the debugger work, at least not for Blazor projects.

I keep getting error: Unexpected token u in JSON at position 0

Haven't tried on console yet.

Daxter98 commented 12 months ago

I have the same "problem". Tried using the C# extension from Open VSIX Registry, loads correctly but I can't make the debugger work, at least not for Blazor projects.

I keep getting error: Unexpected token u in JSON at position 0

Haven't tried on console yet.

For anyone still looking for a way to debug dotnet in Cursor. I've finally managed to make it work at the end of your configuration in launch.json add this. Tested on Debian 12 via SSH.

  "pipeTransport": {
      "pipeCwd": "${workspaceFolder}",
      "pipeProgram": "bash", 
      "pipeArgs": [
          "-c"
      ],
      "debuggerPath": "<path-to-your-debugger>"
  }

The debugger, if you installed the C# extension from Open VSIX, you could find it under the extensions folder of cursor or if you installed the debugger from Samsung NetCoreDbg just point to your installation folder.