How to find the cause of crash?

via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Mar 11 03:13:10 PDT 2015


On Wednesday, 11 March 2015 at 08:16:17 UTC, zhmt wrote:
> Now , my question is:
> How to get the position it crashes?
> Or get the method call stack?

If you are developing under Linux, you can use GDB to debug your 
D apps, just like any C/C++ program. Make sure you are compiling 
in debug mode in order to have debug symbols in your binary.

Under Windows, there is Mago with VisualD.

Please refer to this page for more details on available debuggers 
: http://wiki.dlang.org/Debuggers

If you don't know how to use these debuggers, there is a lot of 
documentation available on the web :)


More information about the Digitalmars-d-learn mailing list