question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Debugger launch may fail with '/usr/local/share/dotnet' does not exist'

See original GitHub issue

Environment data

dotnet --info output:

Microsoft .NET Core Shared Framework Host

  Version  : 2.0.3
  Build    : a9190d4a75f4a982ae4b4fa8d1a24526566c69df

VS Code version: Version 1.18.1 (1.18.1) C# Extension version: 1.13.1

Steps to reproduce

Use osx Install VSC, extension. Download dotnet core form site and use the install to setup.

Expected behavior

Run the debugger

Actual behavior

having the same issue: Displays the error after trying to debug.

launch: program '/usr/local/share/dotnet' does not exist.
screen shot 2017-12-01 at 6 46 10 pm

I can run dotnet from internal terminal or OSX terminal. It also works if I assigned the debugger to an existing process, but doesn’t work debugging a new one.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
gregg-miskellycommented, Dec 2, 2017

Both VS for Mac and VS Code use the same underlying debugger. So that makes sense.

1reaction
gregg-miskellycommented, Dec 2, 2017

Okay, good. I should be able to repro this then. I will try to get the debugger fixed up for our next release. In the mean time, if you can swap the order of /usr/local/share and /usr/local/bin I think this will go away.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Debugger operation failed launch: program 'dotnet' does not ...
So Im trying to program F# on my mac. The problem is that im trying to use VS for mac to run it....
Read more >
Path to shell executable "dotnet" is not a file of a symlink ...
The terminal process failed to launch: Path to shell executable "dotnet" is not a file of a symlink. Terminal will be reused by...
Read more >
Install .NET on macOS - Microsoft Learn
In this article, you'll learn how to install .NET on macOS. .NET is made up of the runtime and the SDK. The runtime...
Read more >
lldb fails to launch process: "Not allowed to attach to process"
Xcode 12.4 on Big Sur, a very basic attempt to launch and debug a process. ... Why would lldb, running as my local...
Read more >
Run .netcore3.1 fail in Rider when both 6 and 3.1 SDK are ...
Net Core 3.1 project is not able to debugging after Net 6.0 SDK is installed ... error: dlopen(/usr/local/share/dotnet/host/fxr/6.0.0/libhostfxr.dylib, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found