-
Notifications
You must be signed in to change notification settings - Fork 389
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
.NET Core App project Debug properties are missing "enable native code debugging" checkbox #1125
Comments
@noahfalk I hear this is CoreCLR issue but I couldn't find an issue in the coreclr repo that would be tracking it. |
@mikem8361 might be able to point you at something or you can create one now |
The latest coreclr master branch (.NET Core 2.0) has mixed mode debugging enabled for Windows. |
Since this checkbox will apparently not be implemented in VS2017, is there any workaround apart from starting the program and attaching the debugger manually? This is extremely cumbersome as I have to guess the right "dotnet" process in the process list, since I have multiple dotnet core applications running concurrently, but I only want to debug a specific one. |
I tried adding |
Hmm, looks like we don't currently respect the legacy debugger settings with the new debugger provider that we wrote. This is where we control it: https://github.com/dotnet/project-system/blob/master/src/Microsoft.VisualStudio.ProjectSystem.Managed.VS/ProjectSystem/VS/Debug/ProjectDebuggerProvider.cs#L76, that's really unfortunate, because the provider that this replaces does support it. @srivatsn Given interop debugging is supported in 2.0, we should enable this for 2.0. |
Keep in mind that this also affects SDK-style projects that only target .NET Desktop. I have a .NET Framework exe using the SDK project system and have a need to do mixed mode debugging. I need a cumbersome hack (use a start program from a legacy project pointing to the output of the SDK project) |
@onovotny: I have the exact same setup (.NET Desktop with new-style csproj). Any updates on when this checkbox will be added to VS for Common Project System-based csprojs? Is it likely to make it into 15.4? (or there's a 15.7?) |
@davidmatson Oren has a PR out - this will make 15.5. |
I'm running into this issue which is effecting xUnit / .NET Standard.
Does not work in xUnit. Trying to debug some C# NamedPipes with C ones in a single Unit Test. |
What version? I think 15.8 or 15.9 Test Explorer was changed to respect this setting. |
I'm on: My csproj settings look like:
|
We don't currently respect that property, you need to add |
Ok that works for me tnx! VS C# proj control panel should really have this option for .NET Core apps.
|
That's exactly what this bug is tracking. :) |
Works for .Net with Visual Studio 2017. Does not work with .Net Core as per dotnet/project-system#1125
This will get more important for .NET Core 3.0 when C++/CLI is enabled, since it will only support mixed-mode assemblies. |
Jumping on the "me too" bandwagon to see if we can get this prioritized higher. It's mostly annoying because I spent 15 minutes searching for the option in VS options, then project properties, and then implementing the hack. How about the exception intellisense have an option to enable native debugging when it detects a native exception? |
Would be nice if this could be prioritized and fixed in Dev16 soon. Given how often we in the WPF team tend to debug into the native stack, our development processes frequently involve native debugging. I just stumbled upon this and figured out how to enable native-debugging for Sdk style projects. Now it's one more thing that has to be turned on for every test project or application we investigate for problems. Just being able to turn it on in the VS UI would be nice. |
Win10 x64 For anyone using Resharper, the launchsettings.json nativedebugging flag is ignored and breakpoints are not hit. Once I disabled it and ran from Test Explorer the breakpoints hit. |
Fixed in #4624 |
Hi, is there a way to start debugging C# and then step into T-SQL, like it was possible with older versions of Visual Studio and pre-SDK projects? My use case is described here. |
@branko-d can you please file a new issue on this repo? |
Do you know how to achieve the same using VSCode? |
Desktop projects have
I can't find this option in .NET Core project. I need to F5 with mixed mode debugging in order to debug some interop code.
The text was updated successfully, but these errors were encountered: