Tue 11 Feb 2014 09:55:51 PM UTC, comment #4:
Hi.
I stumbled across this today.
This might be anecdotal, but as a sidenote, here is my use case.
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);
-------------------
This works on Matlab. There may even be a nicer solution (?), but anyway, it does the trick.
However, on octave, when in my main script, all breakpoints outside of this main script are not returned by dbstatus, and therefore, these are cleared.
E.g.
-------------------
octave:1> dbstop('file1',1)
ans = 1
octave:2> dbstop('file2',1)
ans = 1
octave:3> dbstatus
breakpoint in file1 at line 1.
breakpoint in file2 at line 1.
octave:4> file2
stopped in /home/jerome/projets/octave/file2.m at line 1
1: b=15;
debug> dbstatus
breakpoint in file2 at line 1.
debug> dbstatus('file1')
breakpoint in file1 at line 1.
-------------------
Thanks for looking into this.
|