Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
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__
macro.
(And in C++, this creates havoc for the One Definition Rule :-)

-- 
John (Max) Skaller at OTT [Open Telecommications Ltd]
mailto:maxs@in.ot.com.au      -- at work
mailto:skaller@maxtal.com.au  -- at home