comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: .trace not working?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: .trace not working? [message #67604 is a reply to message #67599] Wed, 05 August 2009 17:39 Go to previous messageGo to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
BLemire@ittvis.com wrote:
> On Aug 5, 2:13 pm, Bruce Bowler <bbow...@bigelow.org> wrote:
>> Environment IDL 7.0 (and 7.1) on fedora 10 (and fedora 11), 32 bit version
>>
>> Imagine, if you will, a simple .pro file such as the following (never
>> mind that this doesn't really do anything)...
>>
>> pro test1
>> x = randomn(seed1, 16)
>> y = randomn(seed2, 16)
>> plot, x, y
>> end
>>
>> Now imagine that you fire up IDL and type the following commands at the
>> IDL> prompt
>>
>> breakpoint,"test1.pro",2
>> test1
>>
>> and further, attempt to stretch you imagination to the point that, when
>> you get to the IDL prompt as a result of the breakpoint, you type
>>
>> .trace
>>
>> You, of course, type that particular command because the documentation
>> says, and I quote,
>>
>> .TRACE - Similar to .CONTINUE, but displays each line of code
>> before execution.
>>
>> but when you hit the return key at the end of .trace, you see no
>> additional outputting of code prior to executing each line of code.
>>
>> Where have you gone wrong???
>>
>> Bruce
>>
>> --
>> +-------------------+--------------------------------------- ------------+
>> Bruce Bowler | I am free of all prejudices; I hate everyone
>> 1.207.633.9600 | equally. - W. C. Fields
>> bbow...@bigelow.org |
>> +-------------------+--------------------------------------- ------------+
>
> Bruce,
>
> Based on the documentation in IDL 70 and IDL 71 the following
> description is provided for the .TRACE command:
>
> "The .TRACE command continues execution of a program that has stopped
> because of an error, a stop statement, or a keyboard interrupt."
>
> This definition was located in
>
> IDL API Reference Guides > IDL Reference Guide > Part I: IDL Command
> Reference > Dot Commands
>
> This documentation is different than that which would be available in
> printed form. The change from the definition you had to the new
> definition occurred in IDL 4.0.1 for exactly the reason you provided.
> I hope that this helps.
>
> Based on the implementation of the .TRACE command, it is only supposed
> to complete executing the code. I was able to get the code to
> complete as expected. It might be helpful if a verbose keyword was
> added to the .TRACE command so that each line of code was output prior
> to execution.

So .trace is exactly equivalent to .continue?

Mike
--
www.michaelgalloy.com
Associate Research Scientist
Tech-X Corporation
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Plot multiple axes with log and linear scales
Next Topic: 3D UserSym?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 10:03:15 PDT 2025

Total time taken to generate the page: 2.39633 seconds