bugGNU Octave - Bugs: bug #41556, Unable to set multiple breakpoints...

 
 

bug #41556: Unable to set multiple breakpoints with dbstop

Submitted by:  Jérôme <jeromegnu>
Submitted on:  Tue 11 Feb 2014 10:25:59 PM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: NoneAssigned to: None
Originator Name: Open/Closed: Open
Release: devOperating System: GNU/Linux

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Wed 12 Feb 2014 02:21:19 PM UTC, comment #2:

Thank you for the workaround. I knew I could do that.

In fact, it is supported in Matlab :

http://www.mathworks.fr/fr/help/matlab/ref/dbstop.html#inputarg_s

Jérôme <jeromegnu>
Wed 12 Feb 2014 02:05:55 PM UTC, comment #1:

in help dbstop there is no mention of dbstop accepting input of type struct; therefore, you'll have do something like:

for i=1:numel(s), dbstop(s(i).name, s(i).line); end

you could fill in a feature request for support for struct input in dbstop, but since it's also unsupported in matlab, it'd introduce an incompatibility.

Felipe G. Nievinski <fgnievinski>
Tue 11 Feb 2014 10:25:59 PM UTC, original submission:

My objective is to save breakpoints while clearing variables :

-------------------

s=dbstatus;
save('breakpoints.mat', 's');
clear all
close all
clc
load('breakpoints.mat', 's');
dbstop(s);

-------------------

But dbstop does not accept structures :

-------------------

dbstop (s)
error: dbstop: struct input not implemented

-------------------

This output is from dev branch and comes from here :
https://savannah.gnu.org/bugs/?41338

On 3.8, I get this:

-------------------

>> dbstatus

breakpoint in file1 at line 1.
breakpoint in file2 at line 1.

>> s=dbstatus

s =

2x1 struct array containing the fields:

name
file
line

>>
>>
>> dbstop(s)

dbstop: accepting a struct
error: add_breakpoint: unable to find the requested function

>> s(1)

ans =

scalar structure containing the fields:

name = file1
file = /home/jerome/projets/octave/file1.m
line = 1

>> s(2)

ans =

scalar structure containing the fields:

name = file2
file = /home/jerome/projets/octave/file2.m
line = 1

>> dbstop(s)

dbstop: accepting a struct
error: add_breakpoint: unable to find the requested function

>> dbstop(s(1).name, s(1).line)

ans = 1

>> dbstop(s(2).name, s(2).line)

ans = 1

>> dbstop(s)

dbstop: accepting a struct
error: add_breakpoint: unable to find the requested function

-------------------

Jérôme <jeromegnu>

 

(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 fgnievinski (Posted a comment)
  • -unavailable- added by jeromegnu (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):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup