bugGNU Octave - Bugs: bug #54789, 'keyboard' in function inside...


bug #54789: 'keyboard' in function inside script file no longer gives debugging console

Submitted by:  Andreas Weber <andy1978>
Submitted on:  Fri 05 Oct 2018 05:15:43 PM UTC  
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Regression
Status:  Confirmed Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  4.4.1 Operating System:  GNU/Linux

Add a New Comment (Rich Markup)

You are not logged in

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


Tue 01 Jan 2019 02:54:06 AM UTC, comment #1: 

Confirmed.  This would be good to fix, although I'm not sure there is enough time before the 5.0 release.

What is interesting is that keyboard works when it is in an m-file function.  And it works in a function typed directly on the command line like so

function z = add (x, y)
  z = x + y;

The only time it does not work is when the function is in a script file.  That sort of irregularity is annoying to programmers.

Rik <rik5>
Project Administrator
Fri 05 Oct 2018 05:15:43 PM UTC, original submission:  

In Octave 4.2.2 it was possible to use "keyboard" inside a function defined in a script file.

file foobar.m


function z = add (x, y)
  z = x + y;

add (2, 3)

In 4.2.2 this gave "stopped in add at line 6"

In 4.4.1:

octave:1> foobar
error: add: no such file, ''
error: called from
   add at line 6 column 3
   foobar at line 10 column 1

Andreas Weber <andy1978>
Project Member


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

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


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

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

    Only project members can vote.




    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-01-01 rik5 StatusNone => Confirmed

    Back to the top

    Powered by Savane 3.5