Re: I can't clear breakpoints using idlwave_shell [message #37771] |
Wed, 28 January 2004 09:48  |
Alan Barnett
Messages: 5 Registered: November 2001
|
Junior Member |
|
|
On Tue, 27 Jan 2004 23:33:45 -0700, JD Smith wrote:
> On Tue, 27 Jan 2004 17:21:30 -0700, Alan wrote:
>
>> I'm running idl 6.0, idlwave-shell 5.2, gnu emacs 21.2.1 and RH9. I'm
>> having the following problem with breakpoints: If I set a breakpoint at
>> line 18 in file source.pro using C-c C-d C-b, and the message
>>
>> "breakpoint,'source.pro',18
>>
>> appears in the *idl* buffer, but the message
>>
>> "Failed to identify breakponit in idl"
>>
>> appears in the minibuffer.
>>
>> If I then list all the breakpoints, the new breakpoint appears in the
>> list, and if I execute source.pro, execution stops at the new
>> breakpoint, but the line is not marked in the source buffer.
>>
>> If I then try to delete the breakpoint using C-c C-d C-d, I get the
>> message
>>
>> "Cannot identify breakpoint for this line"
>>
>> in the minibuffer, no message in the *idl* buffer, and the breakpoint is
>> not removed.
>> Any ideas how to fix this bug?
>
>
> Sounds like a problem parsing the breakpoint listing, perhaps due to a
> very long or unusual filename. Can you post the breakpoint list?
>
> JD
The problem occurs for all files. An example of the breakpoint list:
IDL> help,/breakpoints
Index Line Attributes File
0 9 Func=FIRST_PT
/home/asb/IDL/spec_dev/first_pt.pro
Here is the source of function first_pt:
;This function extrapolates absolute value the first point of an fid.
function first_pt,xx,$ ;x-coordinate of voxel to extrapolate
yy ;y-coordinate of voxel to extrapolate
COMMON mrsidata
COMMON initcsi
COMMON rsettings
skip=eskip
npts=epts
ndegree=edegree
offset=skip-echo_pt1 ;Extent of extrapolation
data=abs(td_dat1(skip:skip+npts-1,xx,yy)) ;Take absolute value of td data
IF keyword_set(rescale) THEN data=data/data(0)
;Do least square fit to data
xvals=offset+indgen(npts)
weights=data^2
;Linear fit
coeffs=polyfitw(xvals,data,weights,ndegree)
result=coeffs(0)
RETURN,result
END
Before I upgraded to idlwave-shell 5.2 and idl 6.0, the breakpoints
were marked with an "@" sign. This no longer happens. Any other
ideas? Are there any variables that might not be set correctly?
|
|
|