Can't debug .NET App inside docker

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

I have this config in launch.json

		{
			"name": "Docker Attach (entityservice)",
			"type": "docker",
			"request": "attach",
			"platform": "netCore",
			"containerName": "eval-entityservice-1",
			"processName": "dotnet",
			"sourceFileMap": {
				"/src": "${workspaceFolder}"
			}
		},

everything works fine in VSCode, but in Cursor, when running debug, it returns an error.

can't parse: [json.exception.out_of_range.403] key 'processId' not found

when i try to add processId (processId: 1 is exactly correct)

		{
			"name": "Docker Attach (entityservice)",
			"type": "docker",
			"request": "attach",
			"processId": "1",
			"platform": "netCore",
			"containerName": "eval-entityservice-1",
			"processName": "dotnet",
			"sourceFileMap": {
				"/src": "${workspaceFolder}"
			}
		},

Debug tries to start, but returns an other error

Failed command 'configurationDone' : 0x80070057

I have the same extensions installed as in VSCode:
C# (Anysphere)
Container Tools
Docker
.NET Install Tool

App’s docker image based on mcr.microsoft.com/dotnet/aspnet:8.0.20-noble@sha256:904bc7f51eb4de06843ce1bae57f449ad275d3a9a4f1474d4437bed98a5494b5

Steps to Reproduce

Run .net core (8) app inside docker
Try to debug with attach to docker container

Screenshots / Screen Recordings

2.png

Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.7.46 (user setup)
VSCode Version: 1.99.3
Commit: b9e5948c1ad20443a5cecba6b84a3c9b99d62580
Date: 2025-10-14T01:21:46.830Z
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.26100

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

help :smiling_face_with_tear:

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.