Debugging in IDL 7 [message #57623] |
Thu, 20 December 2007 08:51  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Folks,
I've been debugging IDL programs for over 20 years, but
I am so friggin' confused right now I can't even see straight.
Why does my &$*@% file close every time I hit the F6 key
to step though the damn thing!?
Can someone please remind me what's so great about this
debug interface? I'm clearly missing something. I have
NO IDEA where I am or what the hell I am doing. :-(
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: Debugging in IDL 7 [message #57738 is a reply to message #57623] |
Thu, 20 December 2007 22:59  |
Robbie
Messages: 165 Registered: February 2006
|
Senior Member |
|
|
Speaking of debugging.
Has anyone managed to use gdb or the MSVC debugger from eclipse?
I'm getting spontaneous crashes from IDL 7.0 but I can't get any
debugging info.
Robbie
|
|
|
Re: Debugging in IDL 7 [message #57748 is a reply to message #57623] |
Thu, 20 December 2007 13:34  |
Doug Edmundson
Messages: 58 Registered: November 2005
|
Member |
|
|
Doug Edmundson wrote:
>> David Fanning writes:
>>
>> I get a compile message in the Console, but the little
>> blue arrow that indicates my position in the file is
>> still there. So where am I? Am I at the main IDL level
>> where I think I am? Or am I still inside the file? Why
>> doesn't that blue arrow go away? How can I make it go
>> away?
>
> Hey David,
>
> We have a known bug about the instruction pointer not getting removed
> when it should be. I'm not sure you found that bug a different way or
> not, but I'll play around with the steps you described and see if I can
> get a reproduce case.
>
> Thanks for the bug report.
>
> Cheers,
> Doug
I should have checked before posting. There's a logged bug which is
essentially: "compiling active routine doesn't clear instruction
pointer". It's currently marked as needing to be fixed for the next
release.
Executing just about any IDL command should update the debug model and
thereby clear the erroneous instruction pointer.
Doug
|
|
|
Re: Debugging in IDL 7 [message #57751 is a reply to message #57623] |
Thu, 20 December 2007 13:20  |
Doug Edmundson
Messages: 58 Registered: November 2005
|
Member |
|
|
> David Fanning writes:
>
> I get a compile message in the Console, but the little
> blue arrow that indicates my position in the file is
> still there. So where am I? Am I at the main IDL level
> where I think I am? Or am I still inside the file? Why
> doesn't that blue arrow go away? How can I make it go
> away?
Hey David,
We have a known bug about the instruction pointer not getting removed
when it should be. I'm not sure you found that bug a different way or
not, but I'll play around with the steps you described and see if I can
get a reproduce case.
Thanks for the bug report.
Cheers,
Doug
|
|
|
Re: Debugging in IDL 7 [message #57767 is a reply to message #57623] |
Thu, 20 December 2007 10:01  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
David Fanning writes:
> BUT, all hell breaks loose, and all of a sudden my Debug
> Perspective looks like Hurricane Katrina came though. Most
> of my windows are now missing, and the ones that are there
> are about 10 times their normal size. (My IDL command window
> is right this minute taking up a third of my display!)
>
> I have NO idea how to sort this out.
OK, I must have double-clicked the wrong damn thing.
Because now, if I double-click the tab of my editor window,
everything seems to go back to normal. I don't know what
I clicked before, but I pray to God I don't click it again!
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: Debugging in IDL 7 [message #57768 is a reply to message #57623] |
Thu, 20 December 2007 09:58  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
David Fanning writes:
> Part of my problem is that I can no longer reliably
> determine where I am in my files.
OK, here is my real problem.
I get into the Debug perspective. The editor window in
this perspective is pretty small. (There are lots of other
windows containing information that I am sure is totally
relevant to my needs, but I don't understand them yet.)
Since I want to do some editing, I make the editor window
bigger by double clicking on it (nice feature, by the way).
When I am finished with my edits, I double click the window
again, which (as I poorly understand it) is suppose to make
the window go back to its previous pusillanimous size.
BUT, all hell breaks loose, and all of a sudden my Debug
Perspective looks like Hurricane Katrina came though. Most
of my windows are now missing, and the ones that are there
are about 10 times their normal size. (My IDL command window
is right this minute taking up a third of my display!)
I have NO idea how to sort this out. And, of course, if
I exit now, IDL is going to think I set this Perspective
up this way by choice and will ALWAYS give it to me from
now on!! Sigh...
I just want to fix my file and get on with my life....
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: Debugging in IDL 7 [message #57769 is a reply to message #57623] |
Thu, 20 December 2007 09:30  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
David Fanning writes:
> I'm still suffering from information overload in that
> damn Debug perspective, but I guess I'll get used to that.
Part of my problem is that I can no longer reliably
determine where I am in my files. Maybe this is an IDL
7 bug. (I'm having difficulty discriminating features from
bugs now, sorry.)
So, I am debugging a program. I put a breakpoint in my
program. I run it. I stop at the breakpoint. I hit the
FLock key and put myself in the wrong mode ... No, forget
that last step. I *finally* get my keyboard in the right
configuration and I step through the code using the F6
key.
OK, find the error. Fix it. Remove the breakpoint.
And click the little gear-like icon up above, which
apparently means "Save and Compile" (I miss my little
stack of suns) and I am ready to go.
I get a compile message in the Console, but the little
blue arrow that indicates my position in the file is
still there. So where am I? Am I at the main IDL level
where I think I am? Or am I still inside the file? Why
doesn't that blue arrow go away? How can I make it go
away?
Just full of questions this morning. :-(
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: Debugging in IDL 7 [message #57770 is a reply to message #57623] |
Thu, 20 December 2007 09:11  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
David Fanning writes:
> Can someone please remind me what's so great about this
> debug interface? I'm clearly missing something. I have
> NO IDEA where I am or what the hell I am doing. :-(
Oh, sorry. Combination of the usual holiday funk,
a stupid programming error, and a Microsoft keyboard
did me in there for a moment.
I don't know how this stupid keyboard works, but by
hitting the F Lock key, I can now step through my code
instead of closing my friggin' window every time. This
probably is not IDL's fault.
I'm still suffering from information overload in that
damn Debug perspective, but I guess I'll get used to that.
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: Debugging in IDL 7 [message #57771 is a reply to message #57623] |
Thu, 20 December 2007 09:05  |
Vince Hradil
Messages: 574 Registered: December 1999
|
Senior Member |
|
|
On Dec 20, 10:51 am, David Fanning <n...@dfanning.com> wrote:
> Folks,
>
> I've been debugging IDL programs for over 20 years, but
> I am so friggin' confused right now I can't even see straight.
> Why does my &$*@% file close every time I hit the F6 key
> to step though the damn thing!?
>
> Can someone please remind me what's so great about this
> debug interface? I'm clearly missing something. I have
> NO IDEA where I am or what the hell I am doing. :-(
>
> 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.")
Sorry David, F6 works fine for me... Try CTRL+Shift+L to get a list
of key bindings.
|
|
|