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-07-07 (14:32)
From: Max Skaller <maxs@i...>
Subject: Re: how to set breakpoint at exception throw?
Gerd Stolpmann wrote:

> In general, you are right; the problem is that I do not have access to the
> location in the source code where the exception happened. I'm interested in the
> line number and the file name of the statement that originally caused the
> exception. 

	Ah. Yes, in C you can get the current line number with a __LINE__
(And in C++, this creates havoc for the One Definition Rule :-)

John (Max) Skaller at OTT [Open Telecommications Ltd]      -- at work  -- at home