English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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.