Enhancement to debugging facilities?

new topic     » goto parent     » topic index » view thread      » older message » newer message

Jeff Zeitlin writes:
> Would it be possible or reasonable to have a procedure
> equivalent to abort() that would, if provided with a non-zero
> parameter, create an ex.err file?  Or, alternatively, modify
> abort() to do so, possibly via a second parameter or setting a
> pragma?

What I usually do is something like:

   if something_is_wrong then
      ? 1/0
   end if

This will generate a divide by zero error and
you'll get a full ex.err dump with traceback.
You could put this into your own routine like
the modified "abort" routine in demo\sanity.ex
that overrides the usual abort().

Regards,
  Rob Craig
  Rapid Deployment Software

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu