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