All debugging broken on MacOS Sierra (10.12.4?)
See original GitHub issueEnvironment 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
- Open dotnet core c# project
- Launch the debugger
- 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:
- Created 7 years ago
- Comments:53 (14 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Here is a work around that worked for me:
runtimes/osx.10.10-x64/native/libdbgshim.dylib
cd ~/.vscode/extensions/ms-vscode.csharp-1.8.0/.debugger
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.
Version 1.8.1 has now been released to the extension gallery, and contains a fix for this issue. Thanks!