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.

All debugging broken on MacOS Sierra (10.12.4?)

See original GitHub issue

Environment data

dotnet --info output:

.NET Command Line Tools (1.0.0-rc3-004530)

Product Information:
 Version:            1.0.0-rc3-004530
 Commit SHA-1 hash:  0de3338607

Runtime Environment:
 OS Name:     Mac OS X
 OS Version:  10.12
 OS Platform: Darwin
 RID:         osx.10.12-x64
 Base Path:   /usr/local/share/dotnet/sdk/1.0.0-rc3-004530

VS Code version: Version 1.9.1 (1.9.1) C# Extension version: 1.7.0

Steps to reproduce

  1. Open dotnet core c# project
  2. Launch the debugger
  3. Wait for project to build

Expected behavior

The debugger launches and allows me to debug the code

Actual behavior

An error is returned in the output window:

--------------------------------------------------------------------------------
You may only use the Microsoft .NET Core Debugger (clrdbg) with Visual Studio
Code, Visual Studio or Visual Studio for Mac software to help you develop and
test your applications.
--------------------------------------------------------------------------------
ERROR: Unable to start debugging. Unexpected CLRDBG output from command "-exec-run".
The program '/Users/nicklasdemayo/aaa/projects-git/Service-BAHAdmin/BAH.Admin/bin/Debug/netcoreapp1.1/BAH.Admin.dll' has exited with code 42 (0x0000002a).

I ran the following (suggested from here):

/Users/nicklasdemayo/.vscode/extensions/ms-vscode.csharp-1.7.0/.debugger/clrdbg --interpreter=mi
-gdb-exit

And got no other unexpected output.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:53 (14 by maintainers)

github_iconTop GitHub Comments

8reactions
gregg-miskellycommented, Mar 27, 2017

Here is a work around that worked for me:

  1. Download https://dotnet.myget.org/F/dotnet-core/api/v2/package/runtime.osx.10.10-x64.Microsoft.NETCore.Runtime.CoreCLR/1.1.2-servicing-25123-01
  2. Open the resulting file as a zip, and copy out runtimes/osx.10.10-x64/native/libdbgshim.dylib
  3. Open a terminal
  4. cd ~/.vscode/extensions/ms-vscode.csharp-1.8.0/.debugger
  5. cp <path-to-extracted-libdbgshim> .

As I said above, but just to repeat here, I expect to have a real fix out soon. But hopefully this will unblock folks in the mean time.

3reactions
gregg-miskellycommented, Mar 31, 2017

Version 1.8.1 has now been released to the extension gallery, and contains a fix for this issue. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Mac OS Sierra 10.12.4 GDB debugger - Stack Overflow
It has been recommended that you must use lldb with Mac Os. Avoid using gdb with Mac. All the debug activities you can...
Read more >
macOS Sierra - Debugging not working - Lazarus Forum
Any news on recommended solution for this? I am still using Lazarus 1.4.4 / homebrew (but can upgrade/change both if necessary)
Read more >
Troubleshooting macOS Sierra Problems - OSXDaily
We have a detailed guide to fix wi-fi problems with macOS Sierra here. ... Spotlight not working at all in macOS Sierra.
Read more >
ggdb broken in Sierra - Apple Community
I have a nigthmare! Nothing work on my MacBook Air with Sierra 10.12.5. Using Lazarus 1.6.4 with FPC 3.0.2. GDB goes to "-exec ......
Read more >
Dynamic library debugging on MacOS X 10.12 (Sierra) and ...
I am running Mac OS X 10.12.2 (Sierra) and I've noticed gdb's support for debugging dynamic libraries is broken. The following message is ......
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