Background:
In order to troubleshoot some crashing python programs, I want to create a stacktrace. Now it just says python.exe has stopped working.
In order to do so, I would like to trigger a fault like this, so I can check if the stacktraces work.
Question:
How can I make a python program crash with the python.exe has stopped working on my local Windows machine? Preferably from a console app.
I tried creating a python program which calls a C++ dll, and calls a function which contains an access violation. When I do this, it still just shows me a stacktrace.
I also tried to keep opening files untill I ran out of memory. It still shows me a MemoryError, with the line number where the operation failed.
Thank you!