Cannot load native DLL symbols when running as a WinUI3 nonpackaged desktop app #2206
rcohn
started this conversation in
Dev team discussions
Replies: 1 comment
-
I found the problem. VS wasn't in mixed-mode debugging.
The project file that supports this is called: launchSettings.json |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi -
Using Visual Studio 2022, we're developing a WinUI3 desktop unpackaged app in C# that loads a Native C++ DLL. When we were building as a packaged (deployable) app, I was able to set breakpoints in the DLL and debug that code.
Then we decided to build the WinUI3 app unpackaged. The built app runs fine, and I can debug in the C# code. But now, none of the DLL symbols are being loaded. I've checked to make sure that I am producing those symbols in the DLL's pdb file, and that the DLL is referenced properly.
I've tried setting VS2022 Debugging properties (including the path to the pdb file, and the "Load debug symbols in external process (Native only)" option). The native project is built with the /Zi flag to generate full path to the symbols.
What am I missing to get the native symbols to be loaded?
Thanks very much for your feedback.
Beta Was this translation helpful? Give feedback.
All reactions