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.

Unable to properly debug duality when using a netstandard project

See original GitHub issue

Summary

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 by NetStandardDebugTest. 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:closed
  • Created 5 years ago
  • Comments:14 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
Barsonaxcommented, Aug 2, 2019

Will check this branch this weekend 👍

1reaction
Barsonaxcommented, Dec 10, 2018

Seems this is finally getting fixed in VS16.0 (so 2019)

Read more comments on GitHub >

github_iconTop 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 >

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