Skip to content

Debugging Qt Problems Python Crashes

clint-lawrence edited this page Jun 6, 2019 · 1 revision

Occasionally it is helpful to inspect the crash dumps generated within qt library functions. On windows this required pdb files for the appropriate dlls. These are not available in the offline installer! You need to use the online installer and tick the right box to get these files (Short of building Qt locally...) This is the case with Qt 5.12.3 at least.

Note PyQt5 5.12.2 bundles Qt 5.12.3 dlls.

Likewise, the python executable debug symbols are not installed by default. These can be installed on Windows by running the Python.org installer, selecting the custom/advanced installation options and ensuring the option to install debug symbols is selected.

Then in visual studio, the path to the specific debug symbols can be configured. The symbols must match the version of python and qt that was running at the time the crash happened.

Clone this wiki locally