cursor icon indicating copy to clipboard operation
cursor copied to clipboard

C# Debugging does not work.

Open sliceofbytes opened this issue 2 years ago • 18 comments

  1. Unable to start debugging. .NET Debugging is supported only in Microsoft versions of VS Code
  2. Windows 11
  3. Attempt to build any C# solution with vsdbg.exe in cursor.

Any work arounds or plans to resolve this? I do a ton of C# programming but quite a context shift to have to open another app anytime I want to build / debug.

sliceofbytes avatar Sep 26 '23 14:09 sliceofbytes

Exactly, this would be very much required for c# developers.

xcellenceit avatar Oct 06 '23 06:10 xcellenceit

Would certainly like to get a good C# debugging experience working in Cursor. Perhaps there's an open source solution that we could try to build-on or support?

truell20 avatar Oct 06 '23 21:10 truell20

Though C# Dev kit extension working fine in cursor. Debugging is still a challenge. This should be prioritise at least before August 2024 as VS for Mac is planned to retire and Cursor would be the complete option for the migration. image

jeganathpv avatar Nov 06 '23 05:11 jeganathpv

Does any update on this?

cannonmaster avatar Nov 20 '23 12:11 cannonmaster

Seems like Microsoft forcefully blocked other fork apps of VS Code

jeganathpv avatar Nov 20 '23 15:11 jeganathpv

Does any update on this?

Fix: https://github.com/VSCodium/vscodium/issues/82#issue-409806641

superkeka avatar Jan 03 '24 23:01 superkeka

Does any update on this?

Fix: VSCodium/vscodium#82 (comment)

Seems that's a workaround, not a fix, if you want to use Microsoft's debugger (vsdbg).

Disappointing that this is still an issue after a year, but I guess the blame lies with Microsoft.

calzakk avatar Sep 28 '24 23:09 calzakk

Any solution to this problem?

fazedordecodigo avatar Jan 14 '25 14:01 fazedordecodigo

This issue has been open since 2016, so guessing this isnt being fixed anytime soon.

https://github.com/dotnet/vscode-csharp/issues/1059

garfbradaz avatar Feb 02 '25 21:02 garfbradaz

Would certainly like to get a good C# debugging experience working in Cursor. Perhaps there's an open source solution that we could try to build-on or support?

Samsung have created their own?

https://github.com/Samsung/netcoredbg?tab=readme-ov-file

garfbradaz avatar Feb 02 '25 21:02 garfbradaz

Some updates in the linked MS issue: https://github.com/dotnet/vscode-csharp/issues/1059#issuecomment-2629597937

Update: .NET team is working on extracting the debugging structure from the licensed debugger dll. Search 'cDAC' in the issues of dotnet runtime repo

alex-jitbit avatar Feb 03 '25 10:02 alex-jitbit

same issue.

jinweihuang20 avatar Feb 08 '25 01:02 jinweihuang20

I documented here how I worked around this limitation using Samsung/netcoredbg. It might be useful: https://guiferreira.me/archive/2025/how-to-debug-dotnet-code-in-cursor-ai/

gsferreira avatar Mar 07 '25 14:03 gsferreira

Currently, I am temporarily using the method provided by gsferreira, and I have not encountered any unsolvable issues. However, as a web developer, I need to specifically add the "ASPNETCORE_URLS" property to properly expose https in the development environment.

EvenC-tw avatar Mar 24 '25 05:03 EvenC-tw

Anyone got netcoredbg working within a linux based docker container while debugging with cursor in the host machine?

harindaka avatar Mar 26 '25 03:03 harindaka

Looks like Cursor's fork of C# extension now supports debugging (via netcoredbg)

https://forum.cursor.com/t/when-are-you-adding-net-debugging/38517/9?u=alex-jitbit

Looks like it works. Just tested on a mac.

alex-jitbit avatar May 22 '25 21:05 alex-jitbit

This issue can be closed. :)

MRL-00 avatar Nov 14 '25 05:11 MRL-00

Yeah, except that C# extension is entirely abandoned.

alex-jitbit avatar Nov 14 '25 12:11 alex-jitbit

Sorry @alex-jitbit you are correct. Looks like there is also no coms from Cursor on this. Would be good to know what their plans are with this extension. @truell20

MRL-00 avatar Nov 16 '25 21:11 MRL-00