|
From: | Rik |
Subject: | [Octave-bug-tracker] [bug #65330] dblist should print out lines around current point in the stack, not just bottom of stack |
Date: | Tue, 20 Feb 2024 16:32:06 -0500 (EST) |
Follow-up Comment #5, bug#65330 (group octave): I tested with dblist. It seems to work well unless there is an error, in which case line numbering gets reset. However, a subsequent dbnext will re-initialize the line in the file and then dblist goes back to working correctly. See the attached sequence which uses 'ls' with a non-existent file to throw an error. octave:2> dbstop ls_command ans = 35 octave:3> ls abc debug> ls def [1]debug> dbstack stopped in: --> ls_command at line 35 [/home/rik/wip/Projects_Mine/octave-dev/scripts/miscellaneous/ls_command.m] ls at line 67 [/home/rik/wip/Projects_Mine/octave-dev/scripts/miscellaneous/ls.m] ls_command at line 35 [/home/rik/wip/Projects_Mine/octave-dev/scripts/miscellaneous/ls_command.m] ls at line 67 [/home/rik/wip/Projects_Mine/octave-dev/scripts/miscellaneous/ls.m] [1]debug> dbcont error: ls: command exited abnormally with status 2 debug> dbstack stopped in: --> ls_command at line 1 [/home/rik/wip/Projects_Mine/octave-dev/scripts/miscellaneous/ls_command.m] ls at line 67 [/home/rik/wip/Projects_Mine/octave-dev/scripts/miscellaneous/ls.m] debug> dbnext debug> dbstack stopped in: --> ls_command at line 37 [/home/rik/wip/Projects_Mine/octave-dev/scripts/miscellaneous/ls_command.m] ls at line 67 [/home/rik/wip/Projects_Mine/octave-dev/scripts/miscellaneous/ls.m] _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?65330> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |