[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #41556] Unable to set multiple breakpoints wit
From: |
Jérôme |
Subject: |
[Octave-bug-tracker] [bug #41556] Unable to set multiple breakpoints with dbstop |
Date: |
Tue, 11 Feb 2014 22:25:59 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20131215 Firefox/24.0 Iceweasel/24.2.0 |
URL:
<http://savannah.gnu.org/bugs/?41556>
Summary: Unable to set multiple breakpoints with dbstop
Project: GNU Octave
Submitted by: jeromegnu
Submitted on: mar. 11 févr. 2014 22:25:59 GMT
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Matlab Compatibility
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: GNU/Linux
_______________________________________________________
Details:
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
-------------------
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?41556>
_______________________________________________
Message posté via/par Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #41556] Unable to set multiple breakpoints with dbstop,
Jérôme <=