-
Notifications
You must be signed in to change notification settings - Fork 676
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
All debugging broken on MacOS Sierra (10.12.4?) #1220
Comments
@sunmorgus could you enable engineLogging (hopefully the quick way will work) and add the relevant sections around '-exec-run' to this bug? |
The quick way appeared to work. I copied everything from the
|
@sunmorgus got it. So it looks like '-exec-run' is failing with E_INVALIDARG (0x80070057), which we don't provide a description for, and that results in this bad error message. Unfortunately that doesn't tell us much about the root cause for where the E_INVALIDARG might be coming from. If you scroll up a little bit where you should see the program path, working directory, and arguments passed, does anything by chance look 'weird'? |
@gregg-miskelly I do see this error a little further up:
However, I took a look at the program path, working directory, and arguments, but nothing sticks out to me as being off... |
@sunmorgus that error is actually normal / ignorable. Hmm... I am not quite sure how to troubleshoot this. Do you get this problem for all projects? |
@gregg-miskelly I went and created a new project, and the same issue occurred. Also, I feel I should mention (and probably should have earlier, sorry)... this issue started occurring after 2 events this morning:
It's hard to say whether or not either of those caused the issue I suppose, but they are about the only things I can think of that changed recently. |
@sunmorgus Thanks. I will see if I can reproduce this on that OS. |
Hoping a solution may be found soon, I am also experiencing this issue when trying to debug. Both on a simple "Hello, World" project, and more advanced code. Exact same OS version as @sunmorgus with same environment also. |
Same situation here, also with macOS 10.12.4 Beta 2. |
Other things I've tried/noticed:
|
I am getting this same error all of a sudden, worked fine yesterday, but last night my MacOS did update to 10.12.4 Public Beta 2. Builds fine, but can't debug any longer, any ideas? ERROR: Unable to start debugging. Unexpected CLRDBG output from command "-exec-run". |
Same for me. |
Also able to repro: On 10.12.4 Beta (16E154a) Terminal window in vscode: My generated launch.json is
|
I thought I'd be able to work around this by launching my app, then attaching the debugger. Unfortunately, I get the same message. |
I ended up downloading the latest stable MacOS version from apple's developer site and it installed back to the pre-beta version without effecting anything that was installed on my MacBook. With that this error was gone, no beta for me till this is resolved... |
Error still occurs, 10.12.4 beta 3 release of macOS. |
It happens in visual studio for Mac is well.
…--
Nick DeMayo
On February 21, 2017 at 8:31:21 AM, Steve Pentland ***@***.***) wrote:
Error still occurs, 10.12.4 beta 3 release of macOS.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1220 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACLmcNjUUI_UOFjD-mBxueI1WDqwUOABks5reucpgaJpZM4L9eD1>
.
|
@noahfalk FYI |
This issue is caused by an issue with a CoreCLR component. I opened https://github.com/dotnet/coreclr/issues/9730 to track the problem. |
I have the same error since upgrading to macOS 10.12.4 beta 2 and 3. Not only Visual Studio for Mac but also VSCode stopped working for me. I'll try reverting to stable 10.12.3 to see if that 'solves' the issue of not being able to debug. |
It seems that 1.8.0-beta2 made progress towards a resolution here... I'm now able to at least start the project inside of vscode, but I get a new error message -------------------------------------------------------------------
You may only use the Microsoft .NET Core Debugger (vsdbg) with
Visual Studio Code, Visual Studio or Visual Studio for Mac software
to help you develop and test your applications.
-------------------------------------------------------------------
Unable to attach to CoreCLR.
Hosting environment: Development
Content root path: [redacted]
Now listening on: http://localhost:5000
Application started. Press Ctrl+C to shut down. I can see that the extension is now using vsdbg rather than clrdbg and that is has options for vscode specifically. I tried running the below to see if I'd get any expected output (grasping at straws here... not entirely certain what I'm even doing is correct): ./vsdbg --interpreter=vscode --engineLogging=vsdbg.log --attach --name dotnet But got no errors or anything in the log file. I then tried to run with logging enabled in my launch.json, and got the following:
|
@sunmorgus I debugged the issue and we are fairly certain we know what is going wrong. The underlying issue is a problem with CoreCLR (see above CoreCLR bug). We are leaving this issue open as we will need to update the debugger to a new CoreCLR once there is a fix from the CLR team. |
I rolled back the osX beta update and that fixed my issue and i was able to run the debugger. |
@robvdveer How do I roll it back? Do I have to do a clean install to do that? |
I rolled back too, to fix this... go to apple developer portal, download the latest non beta version of Mac OS and install it. It didn't wipe anything for me, I was able to debug in VSCode as soon as it booted back up. MAKE SURE you disable updating back to beta in Mac Settings, otherwise you are back where you started, happened to me once... |
Sigh... I'm on the public beta and don't have access to the developer portal :( |
Can't you find the nonbeta download in your app store history. |
I can confirm this workaround worked for me. Although my extensions directory was ms-vscode.csharp-1.7.0 Thanks!! |
FYI, I ran into this issue today too, but with Mac OS Sierra 10.12.2, using VS Code, both via "Attach" with one project, and "Launch (web)" with another project. The project associated with the Attach attempt was a new one I just started exploring today (the MS-birthed, very cool Humanitarian Toolbox AllReady project), and the project associated with the Launch attempt was an existing one that was debuggable just fine as recently as last week. And I suspect this might be related to a new C# 1.8.0, which VS Code reported needing updating today - so I did. Since I did this in the context of the new project, I initially assumed the problem might be something related to it. But I can confirm that the problem is fixed now for both projects after following Gregg's instructions above. Yippee! Thanx much. |
I ran into this issue on Mac OS Sierra 10.12.3, but the workaround provided by @gregg-miskelly worked! Thank you! I'm not sure what I did to run into this, because it was working yesterday for me. |
I ran into the same problem today it may be linked to any of the following events:
I'll go for the macOS update, anyway @gregg-miskelly 's solution worked perfectly. |
I have posted a new release of the C# extension that includes the fix. To try it -- use the use the Installing Beta Releases instructions to install v1.9.0-beta2. |
Thanks, is working now, I was having the same issue today. |
macOS 10.12.4 and the beta release has enabled debugging to work as expected for myself as well. Thank you. |
I am happy to see this working for VSCode now. However, will this patch work for Visual Studio for Mac Preview as well? |
I believe the workaround mentioned above will help you solve the same issue. You can reference here: https://github.com/dotnet/coreclr/issues/10279 -> Haven't tried this approach yet. |
@jorgecotillo yes thanks that workaround fixed it for me! Back to work! |
@gregg-miskelly: Should this resolved fixed now? |
@gregg-miskelly Version 1.8.1 fixed the issue for me as well. |
@DustinCampbell I was going to resolve this as soon as we pushed to the gallery (since hithub makes it harder to find closed issues and this one is popular). |
Version 1.8.1 has now been released to the extension gallery, and contains a fix for this issue. Thanks! |
Environment data
dotnet --info
output:VS Code version:
Version 1.9.1 (1.9.1)
C# Extension version:
1.7.0
Steps to reproduce
Expected behavior
The debugger launches and allows me to debug the code
Actual behavior
An error is returned in the output window:
I ran the following (suggested from here):
And got no other unexpected output.
The text was updated successfully, but these errors were encountered: