dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
14.91k stars 4.63k forks source link

[Mono] [Debug] VS Code debugger for Mono does not attach #93615

Open matouskozak opened 10 months ago

matouskozak commented 10 months ago

Description

Following guide on debugging libraries with VS Code running on Mono, the VS Code debugger starts for 1-2 seconds but can't attach to localhost and the command is left hanging. Similar issue is described in https://github.com/dotnet/vscode-csharp/issues/4903.


cc: @ivanpovazan @fanyang-mono

Reproduction Steps

Follow the guide at https://github.com/dotnet/runtime/blob/main/docs/workflow/debugging/libraries/debugging-vscode.md#debugging-libraries-with-visual-studio-code-running-on-mono.

Expected behavior

Debugger attaches and allows developer to debug libraries code.

Actual behavior

Debugger starts for 1-2 seconds but cannot attach.

Regression?

No response

Known Workarounds

Similar to https://github.com/dotnet/vscode-csharp/issues/4903#issuecomment-993015843. Removing signatures from ms-vscode.mono-debug-0.16.3 extension binaries and re-signing with own code signing certificate.

Configuration

Other information

No response

ghost commented 10 months ago

Tagging subscribers to this area: @thaystg See info in area-owners.md if you want to be subscribed.

Issue Details
### Description Following guide on [debugging libraries with VS Code running on Mono](https://github.com/dotnet/runtime/blob/main/docs/workflow/debugging/libraries/debugging-vscode.md#debugging-libraries-with-visual-studio-code-running-on-mono), the VS Code debugger starts for 1-2 seconds but can't attach to localhost and the command is left hanging. Similar issue is described in https://github.com/dotnet/vscode-csharp/issues/4903. --- cc: @ivanpovazan @fanyang-mono ### Reproduction Steps Follow the guide at https://github.com/dotnet/runtime/blob/main/docs/workflow/debugging/libraries/debugging-vscode.md#debugging-libraries-with-visual-studio-code-running-on-mono. ### Expected behavior Debugger attaches and allows developer to debug libraries code. ### Actual behavior Debugger starts for 1-2 seconds but cannot attach. ### Regression? _No response_ ### Known Workarounds Similar to https://github.com/dotnet/vscode-csharp/issues/4903#issuecomment-993015843. Removing signatures from `ms-vscode.mono-debug-0.16.3` extension binaries and re-signing with own code signing certificate. ### Configuration - .NET: 8.0.100-rc.1.23415.11 - OS: macOS Sonoma 14.0 - CPU: arm64 Apple M2 Max chip - VS Code 1.83.1 - Mono Debug extension v0.16.3 ### Other information _No response_
Author: matouskozak
Assignees: thaystg
Labels: `area-Debugger-mono`
Milestone: -
thaystg commented 10 months ago

@akoeplinger Can you help us with this?