Re: Automatic Debug Persepective [message #57752 is a reply to message #57625] |
Thu, 20 December 2007 13:10   |
Doug Edmundson
Messages: 58 Registered: November 2005
|
Member |
|
|
David Fanning wrote:
> Folks,
>
> One of the things I've read is that when an error occurs
> in an IDL program you are "automatically thrown into the
> Debug perspective". Unfortunately, that doesn't appear to
> be the case with me. Is this because I am catching errors
> and handling them myself? If so, is there a way I can
> force the Workbench to change my Perspective programmatically?
>
> Cheers,
>
> David
Hi David,
When IDL execution suspends, the IDL Workbench will ask if you want to
switch to the debug perspective. You can answer "yes" or "no" and also
have it remember your decision. If you've already clicked "no" and had
it remember your decision, then this could be why it isn't automatically
switching. Those decisions can be reset via the preferences. (In the
preferences dialog, search for "debug" and then go under the
"Perspectives" page.)
If you catch your errors, you'll have to put in a "stop" or something to
get the interpreter to suspend. Perhaps do a conditional "stop" if some
debug flag is set?
There's no way to have an IDL program issue commands to the IDL
Workbench. Hmmm. That sends my mind reeling!
Cheers,
Doug
|
|
|