# Unable Run .NET Debugging in Cursor

**URL:** <https://forum.cursor.com/t/unable-run-net-debugging-in-cursor/3920>\
**Category:** Help\
**Created:** [April 2, 2024, 2:45am UTC](https://forum.cursor.com/t/unable-run-net-debugging-in-cursor/3920 "2024-04-02T02:45:58Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![enggarprdh](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/enggarprdh/32/1691_2.png) [@enggarprdh](https://forum.cursor.com/u/enggarprdh)\
**Post date:** [April 2, 2024, 2:45am UTC](https://forum.cursor.com/t/unable-run-net-debugging-in-cursor/3920/1 "2024-04-02T02:45:58Z")

</div>

I use .NET 6 for development, to generate code with no issue with the cursor editor. But when run I get issues like the image below. Any idea how to fix it?

 ![image](https://us1.discourse-cdn.com/cursor1/original/2X/4/4d647673e9e54c8b5e879fe0244d54913988df87.png)

---

<div class="post-metadata">

**Author:** ![punkouter23](https://avatars.discourse-cdn.com/v4/letter/p/ee59a6/32.png) [@punkouter23](https://forum.cursor.com/u/punkouter23)\
**Post date:** [April 2, 2024, 2:11pm UTC](https://forum.cursor.com/t/unable-run-net-debugging-in-cursor/3920/2 "2024-04-02T14:11:05Z")

</div>

yes welcome to .net . This is an annoying thing. So youll need to keep cursor open just for the AI and have vs2022 open too

---

<div class="post-metadata">

**Author:** ![tangjun](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/tangjun/32/16356_2.png) [@tangjun](https://forum.cursor.com/u/tangjun)\
**Post date:** [April 2, 2024, 2:49pm UTC](https://forum.cursor.com/t/unable-run-net-debugging-in-cursor/3920/3 "2024-04-02T14:49:42Z")

</div>

open Cursor editor and visual studio.

- edit by Cursor
- run in visual studio

😅

---

<div class="post-metadata">

**Author:** ![stefandevo](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/stefandevo/32/2597_2.png) [@stefandevo](https://forum.cursor.com/u/stefandevo)\
**Post date:** [July 15, 2024, 2:53pm UTC](https://forum.cursor.com/t/unable-run-net-debugging-in-cursor/3920/4 "2024-07-15T14:53:15Z")

</div>

So this is pretty annoying… isn’t there a better way to fool vscode running the code in the “original” vscode instead of the cursor extension?

---

<div class="post-metadata">

**Author:** ![HardTest](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/hardtest/32/2646_2.png) [@HardTest](https://forum.cursor.com/u/HardTest)\
**Post date:** [July 17, 2024, 9:51pm UTC](https://forum.cursor.com/t/unable-run-net-debugging-in-cursor/3920/5 "2024-07-17T21:51:05Z")

</div>

To run and debug .NET projects in Cursor, you can use the netcoredbg project - a managed code debugger for CoreCLR with an MI interface. You can find it at [Samsung/netcoredbg](https://github.com/Samsung/netcoredbg).

Here’s an example of my launch.json configuration: [Debugging .NET Projects in Cursor with netcoredbg: launch.json Example · GitHub](https://gist.github.com/CriDos/60c020bf9f98009e6c6c322506518183)

---

<div class="post-metadata">

**Author:** ![stefandevo](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/stefandevo/32/2597_2.png) [@stefandevo](https://forum.cursor.com/u/stefandevo)\
**Post date:** [July 26, 2024, 7:17am UTC](https://forum.cursor.com/t/unable-run-net-debugging-in-cursor/3920/6 "2024-07-26T07:17:45Z")

</div>

Ok thanks for this; I just have to find out how this works on Mac 🙂

---

<div class="post-metadata">

**Author:** ![gokcin](https://avatars.discourse-cdn.com/v4/letter/g/45deac/32.png) [@gokcin](https://forum.cursor.com/u/gokcin)\
**Post date:** [July 26, 2024, 8:41am UTC](https://forum.cursor.com/t/unable-run-net-debugging-in-cursor/3920/7 "2024-07-26T08:41:07Z")

</div>

@stefandevo please let me know if you can figure this out. I tried the samsung debugger a couple of months ago and just gave up after too many failed attempts.

---

<div class="post-metadata">

**Author:** ![gokcin](https://avatars.discourse-cdn.com/v4/letter/g/45deac/32.png) [@gokcin](https://forum.cursor.com/u/gokcin)\
**Post date:** [August 29, 2024, 11:31am UTC](https://forum.cursor.com/t/unable-run-net-debugging-in-cursor/3920/8 "2024-08-29T11:31:17Z")

</div>

Hi all

I finally figured this out and managed to debug a .net 8 project on an m2 mac. For me, downloading the binary from the netcoredbg release assets never worked, what made debugging possible for me was to tcompile and install netcoredbg from source and use the newly generated binary path in `launch.json`.

You can try doing this by following the README in my sample [repo](https://github.com/dgokcin/dotnet-cursor-debugging-with-breakpoints).

 ![image](https://us1.discourse-cdn.com/cursor1/original/2X/2/2e5cad75ffc5b17f754d0fd407fe01e70acb473b.jpeg)

---

<div class="post-metadata">

**Author:** ![ClementeGao](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/clementegao/32/19961_2.png) [@ClementeGao](https://forum.cursor.com/u/ClementeGao)\
**Post date:** [January 14, 2025, 7:31am UTC](https://forum.cursor.com/t/unable-run-net-debugging-in-cursor/3920/9 "2025-01-14T07:31:25Z")

</div>

how work

---

<div class="post-metadata">

**Author:** ![amel.music](https://avatars.discourse-cdn.com/v4/letter/a/2acd7d/32.png) [@amel.music](https://forum.cursor.com/u/amel.music)\
**Post date:** [January 17, 2025, 9:13pm UTC](https://forum.cursor.com/t/unable-run-net-debugging-in-cursor/3920/10 "2025-01-17T21:13:35Z")

</div>

we really need this. At least packed samsung’s debugger.

---

<div class="post-metadata">

**Author:** ![bealtis](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/bealtis/32/22552_2.png) [@bealtis](https://forum.cursor.com/u/bealtis)\
**Post date:** [January 27, 2025, 12:19pm UTC](https://forum.cursor.com/t/unable-run-net-debugging-in-cursor/3920/11 "2025-01-27T12:19:20Z")

</div>

Is there an update to this?  
The samsung debugged is not working for me.

---

<div class="post-metadata">

**Author:** ![jitterbox](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/jitterbox/32/33776_2.png) [@jitterbox](https://forum.cursor.com/u/jitterbox)\
**Post date:** [March 6, 2025, 9:52pm UTC](https://forum.cursor.com/t/unable-run-net-debugging-in-cursor/3920/14 "2025-03-06T21:52:04Z")

</div>

FWIW, the .NET team is working on extracting the licensed debugging DLL… I would watch for further developments in 2025:

> <https://github.com/dotnet/vscode-csharp/issues/1059#issuecomment-2629597937>
>
> Hi, 
> 
> Quick question, iv noticed a fairly well known company that is developin…g .net ide are using your clrdbg.exe.
> 
> I run an open source project AvalonStudio (https://github.com/VitalElement/AvalonStudio/) which is mainly for c/c++ but we have started to add c# and .net support. We had a look at clrdbg and notice it prints a message to say its not available for use outside vscode, xamarin studio or visual studio.
> 
> which is why we haven't used it.
> 
> We are interested if like the company that are using it, we could get permission to use it also (we are not a company or profitable organization).
> 
> I spoke to some of the omnisharp guys and they told me @gregg-miskelly might be able to help me?
> 
> Thanks in advance for any information

…and…  
[[cDAC] Contract implementations needed for managed stack walking · Issue #110758 · dotnet/runtime](https://github.com/dotnet/runtime/issues/110758)

---

<div class="post-metadata">

**Author:** ![JaneySprings](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/janeysprings/32/34365_2.png) [@JaneySprings](https://forum.cursor.com/u/JaneySprings)\
**Post date:** [March 8, 2025, 5:56pm UTC](https://forum.cursor.com/t/unable-run-net-debugging-in-cursor/3920/15 "2025-03-08T17:56:23Z")

</div>

Perhaps it will be useful to someone, I have my own C# DevKit, called DotRush:  
[JaneySprings/DotRush: Lightweight C# development environment for VSCode](https://github.com/JaneySprings/DotRush)  
It also has IntelliSense, debugger, test explorer (and I’ll add profiling there soon).

During installation, it will download netcoredbg to you if you run it in Cursor:

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/f/6/f6235a776faa1c6a168950c2acf969589ac87aca.png)

---

<div class="post-metadata">

**Author:** ![alex-jitbit](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/alex-jitbit/32/25702_2.png) [@alex-jitbit](https://forum.cursor.com/u/alex-jitbit)\
**Post date:** [May 22, 2025, 9:53pm UTC](https://forum.cursor.com/t/unable-run-net-debugging-in-cursor/3920/16 "2025-05-22T21:53:43Z")

</div>

Check this out everyone: [When are you adding .NET Debugging? - #9 by ravirahman](https://forum.cursor.com/t/when-are-you-adding-net-debugging/38517/9)
