How can I find out which procedure threw an exception in Delphi?

后端 未结 3 1455
南笙
南笙 2020-12-15 09:03

I am using Delphi TApplication.OnException Event to catch unhandled exceptions

This works well but does not give sufficient information about where the exception hap

3条回答
  •  长情又很酷
    2020-12-15 09:58

    You can get the memory address where the exception was thrown by using the ExceptAddr variable (System unit). But if you want a stack trace you could use one of the 3rdParty tools MadExcept, EurekaLog or the open source JCLDebug (part of the JCL).

提交回复
热议问题