No "Python/Native Debugging" option when debugging a native (embedding) application crash dump
See original GitHub issueHi,
After installing the Python native tools I am able to attach the mixed-mode debugger to my application, which embeds Python, and that works great.
However, I sometimes have to debug minidumps-with-heap from customers, and for those I do not see any way to get Python stack frames except for hacking up the Natvis file and then inspecting the autoInterpreterState
manually.
The only option on the dumps is Debug with Native Only.
Thank you!
Issue Analytics
- State:
- Created 4 years ago
- Comments:10 (7 by maintainers)
Top Results From Across the Web
The option "Python/Native Debugging" is missing from ...
Go to C:\Program Files\Microsoft Visual Studio\2022\Community\Msbuild\Microsoft\VC\v170\Platforms\x64\ImportAfter folder and check if Microsoft.
Read more >No symbols loaded for c++ in mixed debugging (from Python)
When I select Python in Select Code type I get this error: "Python debugging is not compatible with Native. Would you like to...
Read more >Diagnosing Native Crashes
Tip: If you've never seen a native crash before, start with Debugging Native Android ... This option is on by default for platform...
Read more >Debug & Analyze Dump Files in Visual Studio - YouTube
Not sure what to do when an unexpected crash occurs in your application ? Try opening a memory dump file! Join us in...
Read more >Core dump debug | CLion Documentation
Configure a core dump debug session. Use one of the options: Select Run | Open Core Dump ...
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 Free
Top 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
Yes, IDumpExtension isn’t going to work correctly in your scenario as it was just designed to allow replacing a single startup engine. It would also require either re-reading the dump file yourself to decide if there is Python code loaded, or always adding Python as a choice for all dump files.
My suggestion: You don’t actually need to use the Dump Launcher page to debug dump files. So I would suggest investigating how much work it is to get dump file debugging to work, and if you think it is worth pursuing we can figure out how to get Python to show up as a choice in some future version of VS. To debug a dump file without the Dump Launcher page, you just call LaunchDebugTargets[2/3/4] as you normally would, but set the dump file as
bstrExe
. You can probably do this by just changing the launching command in a normal python+native interop project.We have no plans to add features to native debugging; its a low-use feature so not high priority.