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:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  Closed
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.


Wed 09 Sep 2020 11:55:30 PM UTC, comment #4: 

Verified.  Marking as Fixed and closing report.

Rik <rik5>
Project Administrator
Wed 09 Sep 2020 07:27:00 PM UTC, comment #3: 

I pushed the following changeset on stable and merged with default:


John W. Eaton <jwe>
Project Administrator
Thu 21 May 2020 04:05:42 PM UTC, comment #2: 

This still doesn't work on the current development tree (Octave 7, hg id 391a9d85e59d).

Markus M├╝tzel <mmuetzel>
Project Member
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

   bug dependencies.


Carbon-Copy List
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -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.




    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-09-09 rik5 StatusReady For Test => Fixed
        Open/ClosedOpen => Closed
    2020-09-09 jwe StatusConfirmed => Ready For Test
    2020-05-21 mmuetzel Dependencies- => bugs #56272 is dependent
    2019-01-01 rik5 StatusNone => Confirmed

    Back to the top

    Powered by Savane 3.7