Question

I have a native C++ project which uses .NET managed dll by mono. I cannot debug .NET managed dll variables through visual studio debugger. Is there a way to debug my dlls? Thank you for your time...

No correct solution

OTHER TIPS

If you want to debug .NET managed dll then of course, you need to start your c++ project executable from .NET managed dll source code. In .Net Dll's project properties, in Debug tab select "start external program" as start action and browse the C++ application. and set the working directory as same directory path.

Now you can debug your code by pressing F5.

Thanks, Regards, Robo

There is currently no way to easily debug managed (C#) code in Visual Studio that is run with mono. You can debug the C/C++ code of your app in Visual Studio, including the mono runtime. To debug the managed pieces of your code, see this post:

Debugging C# assembly launched by embedded mono runtime?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top