bugGNU Octave - Bugs: bug #38983, Debugger does a dbcont in response...

 
 

bug #38983: Debugger does a dbcont in response to workspace right mouse button function

Submitter:  Dan Sebald <sebald>
Submitted:  Tue 14 May 2013 03:50:19 AM UTC
   
 
Category:  GUI Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 20 Mar 2014 03:38:49 PM UTC, comment #2: 

Is this bug still a problem?  There has been a lot of work on the GUI and debugger.  I just tried debugging a function and right-clicking and no dbcont occurred.  This was on the development branch with tip 89a8a90ac850.

Rik <rik5>
Group administrator
Fri 18 Oct 2013 10:53:08 AM UTC, comment #1: 

The attached patch fixes the issue for me. It replaces


command_editor::interrupt ();


by


command_editor::accept_line ();


in the callback function for executing commands. My knowledge of the command editor is very limited and I have no idea what side effects may occur (except for the extra newline that is displayed for every command) but maybe this is a hint into the right direction.



(file #29400)

Torsten Lilge <ttl>
Group Member
Tue 14 May 2013 03:50:19 AM UTC, original submission:  

When in debug mode, looking at the workspace variable using the right mouse click "disp()" routine will cause the debugger to continue.  As an example, open uigetfile.m in the editor window and set a breakpoint at the first line inside the function, i.e.,


if (! __octave_link_enabled__ ())


then type "uigetfile" at the command line in the terminal window.

When the debugger breaks, type "disp(varargin)".  I see:


>> uigetfile
stopped in /usr/local/src/octave/octave/build-gui-11/../octave/scripts/plot/uigetfile.m at line 68
68:   if (! __octave_link_enabled__ ())
debug> disp(varargin)
{}(0x0)
debug>


Now, do the equivalent command via the workspace.  Right click on the variable "varargin" in the workspace window and select "disp(varargin)".  The debugger will continue as though a "dbcont" was issued and the file selector pops up.  Pressing "cancel" results in


debug> disp(varargin)
{}(0x0)
debug> disp (varargin);
ans = 0
>>


Dan Sebald <sebald>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #29400:  bug38983_p01.diff added by ttl (522B - text/x-diff)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by siko1056 (Updated the item)
  • -email is unavailable- added by ttl (Updated the item)
  • -email is unavailable- added by rik5 (Updated the item)
  • -email is unavailable- added by sebald (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
    2015-09-28 siko1056 StatusPatch Submitted Fixed
    2014-04-08 rik5 Open/ClosedOpen Closed
    2013-10-18 rik5 StatusNone Patch Submitted
    2013-10-18 ttl Attached File- Added bug38983_p01.diff, #29400
    2013-10-17 rik5 CategoryInterpreter GUI

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code