Hi Thomas,
Note that you can already 'emulated' this by just setting a break point on
::Error
and TObeject::Error
Cheers,
Philippe.
-----Original Message-----
From: owner-roottalk@pcroot.cern.ch
[mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of Thomas Bretz
Sent: Tuesday, September 30, 2003 3:39 AM
To: roottalk@pcroot.cern.ch
Subject: [ROOT] Error and Exceptions
Dear rooters,
might it be possible to implement a feature such, that if I get a
message like this
Error in <TArrayC::operator[]>: index 577 out of bounds (size: 577,
this: 0xbffff220)
I can switch on raising an exception so that I can identify the position
in the code by a debugger?
I think of something like
if (gDebugLevel>3) // for the Error messages
"Raise an exception"
if (gDebugLevel>2) // for the Warning messages
"Raise an exception"
...
I think this could simplify debugging a lot.
Best regards,
Thomas.
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:15 MET