Line numbers in stack traces
Vlad Dumitrescu XX (LN/EAB)
vlad.xx.dumitrescu@REDACTED
Wed Aug 10 12:53:16 CEST 2005
> -----Original Message-----
> From: owner-erlang-questions@REDACTED
> [mailto:owner-erlang-questions@REDACTED]On Behalf Of Richard Cameron
> Programs crash, and all I want to know is where
> they've crashed. This information is (almost) in the virtual machine
> already, and it really annoys me to have to play a guessing game
> every time.
Hi,
I would also like to see better support for this.
If you have a bug to hunt *now*, a way to find out which clause in handle_call is at fault, you can start the gen_server with a {debug, [trace]} option and you will get on the console a listing of all messages that the process received. The last one is usually the one thet triggered the exception.
regards,
Vlad
More information about the erlang-questions
mailing list