diff options
author | Steve Bennett <steveb@workware.net.au> | 2023-01-13 10:23:19 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2023-02-13 10:43:00 +1000 |
commit | 517d85974c7cf8d4f894f46251462e14b6fc562f (patch) | |
tree | 2e4eebd4f75671687827d484803e1a2da1d60d88 /jim_tcl.txt | |
parent | db26fe46ea9a35d403067498f4b85eee82b431b0 (diff) | |
download | jimtcl-517d85974c7cf8d4f894f46251462e14b6fc562f.zip jimtcl-517d85974c7cf8d4f894f46251462e14b6fc562f.tar.gz jimtcl-517d85974c7cf8d4f894f46251462e14b6fc562f.tar.bz2 |
Tcl-compatible 'info frame'
Returns a dictionary with file, line, cmd, (possibly) proc and level.
And support 'info frame 0' for the current command.
Note that now all evaluation frames are captured, not just call frames.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'jim_tcl.txt')
-rw-r--r-- | jim_tcl.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/jim_tcl.txt b/jim_tcl.txt index d74c1f8..097e36a 100644 --- a/jim_tcl.txt +++ b/jim_tcl.txt @@ -58,6 +58,7 @@ Changes between 0.81 and 0.82 2. TIP 603, `aio stat` is now supported to stat a file handle 3. Add support for `socket -async` 4. The handles created by `socket pty` now make the replica name available via 'filename' +5. `info frame` now returns a (largely) Tcl-compatible dictionary, and supports 'info frame 0' Changes between 0.80 and 0.81 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -2876,6 +2877,7 @@ The legal +'option'+'s (which may be abbreviated) are: otherwise. +*info frame* ?'number'?+:: + TBD: Update for new Tcl-compatible dictionary format - type, line, file, cmd, proc, level. If +'number'+ is not specified, this command returns a number which is the same result as `info level` - the current stack frame level. If +'number'+ is specified, then the result is a list consisting of the procedure, |