- Home /
How to step into a native C++ dll in Visual Studio?
I'm debugging my C# unity code through visual studio, and I would like to step into my native C++ code. From C#, I am loading my native c++ plugin using the LoadLibrary function.
[ DllImport( "kernel32.dll" ) ] public static extern IntPtr LoadLibrary( string dllToLoad );
Although my dll loads successfully and I can call functions inside my C++ plugin, I can't step into my C++ code and I can't see my dll in Visual Studio's modules window.
Is Visual Studio not loading my pdb? I've already set the dll's pdb location in Visual Studio Tools-->Options-->Debugging->Symbols
Screenshot of my modules window after calling LoadLibrary() on my dll: http://puu.sh/pFRvc/fa9d73a3db.png
Hi everyone, I would like to know if there is any chance that it is possible now to debug step by step in native C++ library with Unity Free version and Visual Community? I was able to do that in 2016 with Unity Pro. Thanks
Your answer
Follow this Question
Related Questions
Native Plugin works in editor but not in build 0 Answers
DllNotFound Exception on Editor but works on Standalone 0 Answers
Using Native C++ dll in Unity 1 Answer
How to generate Portable PDB for a C++/CLI DLL in Visual Studio to be used in Unity 0 Answers
What is the correct location for a native (C++) plugin's DLL dependencies 1 Answer