Unable to properly debug duality when using a netstandard project
See original GitHub issueSummary
When you debug your plugin in VS it actually starts the Launcher.exe since the library itself is not runnable. This works fine for net portable projects but when doing this in a netstandard project things go wrong. Your game will run fine but you are unable to stop execution or step through your code.
While this ‘bug’ is not strictly related to duality as I can reproduce this easily outside of duality it does affect duality. This issue is mostly for aggregating info together in the hope to find a suitable workaround or fix.
Made a issue about this on the netstandard repo here
How to reproduce
- Download and open the attached test project.
- RebuildBuild the solution and start
ClassLibrary1
. This will actually start the exe generated byNetStandardDebugTest
. Note that it will run properly. - Now set a breakpoint and run it again. Note that the break point will not work.
- Now try to pause the execution. You will get a Unknown error 0x80004005
Workaround
- Do not use netstandard. This is currently a good workaround but eventually we want to switch to/support netstandard at which point this issue will become a blocker.
Attachments
Issue Analytics
- State:
- Created 5 years ago
- Comments:14 (14 by maintainers)
Top Results From Across the Web
Unable to properly debug a netstandard project when ...
Debugging doesnt seem to work properly when you start a net framework exe from a netstandard project through the Debug Launch setting.
Read more >Can't Debug .NET Standard 2.0 DLL in UWP
Debugging the UWP code does work, and the lower level .NET Standard 2.0 projects do debug. It's only one project that won't debug....
Read more >[SOLVED]Cannot debug on .NET standard project Xamarin
I'm using Xamarin with Mvvmcross 6 version (in beta). For now I cannot use debug on the shared process (which is a .NET...
Read more >Multi-targetting .Net Framework and .Net Core in a single project
A 15-second guide and 15-minute walk through. You have a .Net Core project, whether a netstandard library, or a netcore app, and you'd...
Read more >Cannot debug ASP.NET web applications
Error while trying to run project: Unable to start debugging on the web server. The server does not support debugging of ASP.
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
Will check this branch this weekend 👍
Seems this is finally getting fixed in VS16.0 (so 2019)