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

 
 

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

Submitter:  Andreas Weber <andy1978>
Submitted:  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
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

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

Verified.  Marking as Fixed and closing report.

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

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

http://hg.savannah.gnu.org/hgweb/octave/rev/7d63f42e94be

John W. Eaton <jwe>
Group 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>
Group administrator
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)
  keyboard
  z = x + y;
endfunction


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>
Group 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

1;

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

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>
Group Member

 

(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

Digest:
   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)
  •  

    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 group 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.13-f8d8.
    Corresponding source code