How to make TCL to show the error stack in interpreted mode?



When I run the script below in a batch it shows the stack.
But when I run it in interpreted mode it only prints the error string.

How to make interactive interpreter to print the error with stack?

script:
proc p3 {} { error "xxx" }
proc p2 {} { p3 }
proc p1 {} { p2 }
p1
.



Relevant Pages

  • Re: Questions about GetRef() and ASP, etc.
    ... > stack does NOT extend into a called procedure's scope. ... > script requires catch-all error handling, however, it is often best to set ... > unexposed functions, mix VBS and JS, etc. WSCs are fairly well documented ... > The Err object appears to be misdocumented in the MS VBS documentation. ...
    (microsoft.public.scripting.vbscript)
  • Re: how to continue running the script
    ... >>> How can i write a code for a senario whereby the script will move on to ... global code, instead of the next line in the procedure. ... As I noted, the Err object is implemented in scope-specific manner, but its ... there is error-trapping status in effect at any level in the stack. ...
    (microsoft.public.scripting.vbscript)
  • Re: Questions about GetRef() and ASP, etc.
    ... >> stack does NOT extend into a called procedure's scope. ... >> script to place a generic error handler earlier in the calling stack, ... This required you to examine the QB routines and your own ... with an interest in programming from a math and logic background, ...
    (microsoft.public.scripting.vbscript)
  • Re: aspx call stack breakpoint incorrect
    ... bracketed script is still shown. ... aspx page, I could use the call stack to find the point on the aspx page ... indicated, but it doesn't lie on the javascript method, because it sends ...
    (microsoft.public.vstudio.development)
  • Re: Virtual machine: Calling a separate script
    ... > the stack of that script, execute, and then somehow get the ...
    (comp.programming)