octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #41338] dbstatus() doesn't return all breakpoi


From: Jérôme
Subject: [Octave-bug-tracker] [bug #41338] dbstatus() doesn't return all breakpoints when called in a function
Date: Tue, 11 Feb 2014 21:55:51 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20131215 Firefox/24.0 Iceweasel/24.2.0

Follow-up Comment #4, bug #41338 (project octave):

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.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?41338>

_______________________________________________
  Message posté via/par Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]