bugGNU Octave - Bugs: bug #51349, debug mode, when entered from a...

 
 

bug #51349: debug mode, when entered from a batch mode script, has readline disabled

Submitted by:  CarnĂ« Draug <carandraug>
Submitted on:  Fri 30 Jun 2017 01:54:35 PM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 3 - LowItem Group: None
Status: ConfirmedAssigned to: None
Originator Name: Open/Closed: Open
Release: devOperating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 30 Jun 2017 09:22:57 PM UTC, comment #1:

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.

Rik <rik5>
Project Administrator
Fri 30 Jun 2017 01:54:35 PM UTC, original submission:

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.

Carnë Draug <carandraug>
Project Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by carandraug (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 30 Jun 2017 09:23:45 PM UTCrik5Summarydebug mode from a program has readline disabled=>debug mode, when entered from a batch mode script, has readline disabled
    Fri 30 Jun 2017 09:22:57 PM UTCrik5Priority5 - Normal=>3 - Low
      StatusNone=>Confirmed

    Back to the top


    Powered by Savane 3.1-cleanup1