-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does this extension allow debugging in cursor.sh for dotnet projects? #70
Comments
Did you ever find a resolution to this? I'm running into the same issue. |
@cmerther nope. I gave up after trying for a week. I felt like I was getting close but nothing I tried has worked. |
I got this extension to work in Cursor[1] (thanks to an unrelated video[2] and its referenced PR comment[3]). These file configurations will allow debugging including hitting breakpoints:
Hope it helps. [1] https://www.cursor.com |
were you able to hit the break point on a mac or on linux? @VoidMonk |
I tried on Windows and latest Cursor, and it hits breakpoints the first few times only, but this extension doesn't work reliably every time with Cursor. Not sure what/where the problem is. As an alternative, I downloaded the "pipeTransport": {
"pipeCwd": "${workspaceFolder}",
"pipeProgram": "cmd",
"pipeArgs": [
"/c",
],
"debuggerPath": "<full-path-to-netcoredbg-executable",
"debuggerArgs": [
"--interpreter=vscode",
"--",
],
"quoteArgs": true
} On a mac you can try replacing So, I'm not sure what benefits this extension provides over just using |
@VoidMonk tried bunch of new things after my previous attempt, no luck I think this may be a Mac issue. would be really good if you can give https://github.com/dgokcin/dotnet-cursor-debugging-with-breakpoints a try and see if you can hit any of the breakpoints. @muhammadsammy some confirmation about the usability of this extension on silicone macs would be really good. |
@cmerther @VoidMonk I finally figured it out to make debugging work on my mac. for me the trick was to compile and install netcoredbg for my architecture and use the path of the built binary in the launch.json. I documented the steps needed in the repository below. Hope that it helps other people who come across to this! https://github.com/dgokcin/dotnet-cursor-debugging-with-breakpoints/blob/main/README.md |
Hello
could you please describe/document how to get this debugger to work in cursor if it is still working with cursor? I tried bunch of different combinations but I am not able to get it to work. I would like to be able to debug a web api project and a console project either with dotnet 6 or 7 as close as possible to the debugging experience in vscode.
Here are the steps I followed:
On a clean IDE with no c# related extensions installed. I downloaded the latest version of this extension, extracted it and placed it under
${workspaceFolder}/netcoredbg
.Created a new project with
dotnet new console
. Added the followinglaunch.json
andtasks.json
..vscode/tasks.json
.vscode/launch.json
Hit Debug(console)
I tried different combinations with the pipe transport, dotnet version etc. but the result is the same, debugger opens and closes and nothing happens in between or debugger hangs without hitting any of my breakpoints.
Note that this configurations works on vscode or vscode insiders with the official c# extension.
The text was updated successfully, but these errors were encountered: