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

Home » Public Forums » archive » Re: Returning up the stack after error
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Returning up the stack after error [message #63938] Sun, 23 November 2008 18:31
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Demitri writes:

> Ah - I'll keep that in mind in the future. I only really work with IDL
> on the command line. Thanks for the replies returned very nearly before
> I sent the questions!

Whoops! I thought you had paid for the express service. My
fault. :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Returning up the stack after error [message #63940 is a reply to message #63938] Sun, 23 November 2008 16:09 Go to previous message
Anonymous
Originally posted by: Demitri

On 2008-11-23 10:38:25 -0700, David Fanning <news@dfanning.com> said:

> I guess I should mention that if you are in the IDL Workbench
> the "Debug" window shows you the call stack and by just clicking
> on the location you want, you can immediately go to that level.
> The "Variables" window will be updated to show the variables
> at that level.

Ah - I'll keep that in mind in the future. I only really work with IDL
on the command line. Thanks for the replies returned very nearly before
I sent the questions!

Cheers,

Dmeitri
Re: Returning up the stack after error [message #63944 is a reply to message #63940] Sun, 23 November 2008 10:23 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Demitri writes:

> Bonus question - if I use RETURN a few times, is there a way to print
> the stack to see where I am?

Help, /TRACEBACK

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Returning up the stack after error [message #63945 is a reply to message #63944] Sun, 23 November 2008 09:41 Go to previous message
Anonymous
Originally posted by: Demitri

On 2008-11-23 10:35:17 -0700, David Fanning <news@dfanning.com> said:

> Demitri writes:
>
>> After IDL encounters an error, the stack is displayed and the current
>> namespace is that of the current procedure. Often for me, this lowest
>> procudure is just a utility method (e.g. parsing a string), but I want
>> to be able to move up the stack one or two steps *without* continuing
>> execution. (Did that make sense?)
>>
>> What command am I missing?
>
> RETURN. :-)

You know, I was using that but I didn't think it was working as I was
expecting it to. My bad - thanks!

Bonus question - if I use RETURN a few times, is there a way to print
the stack to see where I am?

Cheers,

Demitri
Re: Returning up the stack after error [message #63946 is a reply to message #63945] Sun, 23 November 2008 09:38 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

> Demitri writes:
>
>> After IDL encounters an error, the stack is displayed and the current
>> namespace is that of the current procedure. Often for me, this lowest
>> procudure is just a utility method (e.g. parsing a string), but I want
>> to be able to move up the stack one or two steps *without* continuing
>> execution. (Did that make sense?)
>>
>> What command am I missing?
>
> RETURN. :-)

I guess I should mention that if you are in the IDL Workbench
the "Debug" window shows you the call stack and by just clicking
on the location you want, you can immediately go to that level.
The "Variables" window will be updated to show the variables
at that level.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Returning up the stack after error [message #63947 is a reply to message #63946] Sun, 23 November 2008 09:35 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Demitri writes:

> After IDL encounters an error, the stack is displayed and the current
> namespace is that of the current procedure. Often for me, this lowest
> procudure is just a utility method (e.g. parsing a string), but I want
> to be able to move up the stack one or two steps *without* continuing
> execution. (Did that make sense?)
>
> What command am I missing?

RETURN. :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: using map_set with postscript device
Next Topic: Why the contour does not show?

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

Current Time: Fri Oct 10 02:36:05 PDT 2025

Total time taken to generate the page: 0.64750 seconds