Add a New Comment (Rich Markup)
Comment Type & Canned Response: None None > Multiple Canned Responses Fixed in development Crash with no stack trace Already fixed in newer version Fixed in stable Bad description Bad description and crash Bad stack trace Obsolete version Duplicate and not fixed Duplicate and needs more info Duplicate and fixed Need info and old
Confirmed. There is an easy enough workaround which is to start an interactive session of Octave and then run the script file to be debugged from the Command Window (GUI) or command line (CLI).
The issue is that when running a script directly from the shell command line Octave believes it is being called in non-interactive batch mode. This would be common if you were running an already debugged script to analyze a new dataset. If Octave is running non-interactively, it believes it doesn't need line-editing capabilities supplied by Readline. Hence the behavior you are seeing.
Another workaround would be to use the command-line option "--line-editing" which will force Octave to include Readline behavior.
When an Octave program enters in debug mode, readline is disabled. Command history is not available, arrows to edit a command are not available, Ctr+C exits instead of cancelling command. This worked in Octave 3.8 (seems to be broken since 4.0).
To reproduce:
1. Have a file with just the command "keyboard" 2. Run 'octave that-file.m' 3. Try to use tab to autocomplete a command name. Write a command and then use the left arrow to edit any character without backspace.
(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)
Attach Files: Comment:
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Only project members can vote.
Please enter the title of George Orwell's famous dystopian book (it's a date):
Follow 3 latest changes.
Copyright © 2023 Free Software Foundation, Inc. Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved. The Levitating, Meditating, Flute-playing Gnu logo is a GNU GPL'ed image provided by the Nevrax Design Team. Source Code
Powered by Savane 3.10