Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
how to set breakpoint at exception throw?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2000-06-29 (16:59)
From: Scott McPeak <smcpeak@c...>
Subject: how to set breakpoint at exception throw?

In the debugger, I'd like to put a breakpoint essentially in the
'raise' function.  The idea is to get control whenever an exception is
raised, and be able to take a backtrace.

Any ideas on how to do this?

Note: I'm mainly interested in exceptions thrown by the runtime
(e.g. stack overflow), not those thrown by my own code, so simply
wrapping every 'raise' is not enough.