Re: Returning up the stack after error [message #63938] |
Sun, 23 November 2008 18:31 |
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  |
|
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 #63945 is a reply to message #63944] |
Sun, 23 November 2008 09:41  |
|
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  |
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  |
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.")
|
|
|