microsoft / microsoft/vscode-dotnettools

[BUG] Debug can't find launchable target with MacOS apps

Open
#549 11 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area-maui area-project enhancement mac triaged
Dominant language
No language data
Stars
321
Forks
54
Avg merge
2d 19h
Merged PRs (30d)
2

Description

Describe the Issue

Attempting to debug an app targetting net7.0-macos fails with the error:

"{projectname}.csproj" does not support debugging. No launchable target found.

Steps To Reproduce
  1. Open a terminal
  2. mkdir mactest
  3. cd mactest
  4. dotnet new macos
  5. code .
  6. Right-click the project and select Debug>Start New Instance
Expected Behavior

The app launches with the VS Code debugger attached.

Environment Information

-OS: MacOS 13.4.1
-VS Code: 1.82.2
-Extension Version: v2.2.10

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure with dotnet new macos, VS Code, and Debug > Start New Instance as described. Trace the C# Dev Kit debug launch path for net7.0-macos and verify that the app launches with the VS Code debugger attached instead of reporting that no launchable target was found.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, macos, vscode
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.