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.

No "Python/Native Debugging" option when debugging a native (embedding) application crash dump

See original GitHub issue

Hi,

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:closed
  • Created 4 years ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
gregg-miskellycommented, Jul 8, 2019

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.

0reactions
gramstercommented, Mar 31, 2021

We have no plans to add features to native debugging; its a low-use feature so not high priority.

Read more comments on GitHub >

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

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