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

Home » Public Forums » archive » Breakpoints in IDL 6.2 (windows)
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
Breakpoints in IDL 6.2 (windows) [message #45158] Wed, 17 August 2005 14:02 Go to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Folks,

I'm having a problem with breakpoints and I'm working with RSI,
trying to do a little research on what the problem might be.
This happens in IDL 6.2, Windows version.

I apparently have saved a project in which a file I was
working on had a breakpoint in it. Now, when I open the project
I can no longer set breakpoints in *any* file in the project.
If I open the file in question, I see a "broken yellow circle",
which normally indicates the file needs to be compiled to "set"
the breakpoint. However, if I compile the file, the yellow dot
disappears. When I run the file, there is no break.

If I look at the Edit Breakpoint dialog, I can see the
breakpoint there, and I can even remove it. But I can still
not set breakpoints in any file in the project. If I remove
all the breakpoints with the Edit Breakpoint dialog, and then
save the project, I *still* cannot set breakpoints when I open
the project in a fresh IDL session.

Since I am not a good enough programmer to write programs
without bugs, I am perplexed. :-(

Has anyone else seen this problem? Do you have any clues
as to what is going on? I guess I'm going to try re-installing
IDL eventually. But I wanted to see if I could come up with a
better solution before I resort to that.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Re: Breakpoints in IDL 6.2 (windows) [message #45229 is a reply to message #45158] Fri, 19 August 2005 02:29 Go to previous message
Werner is currently offline  Werner
Messages: 3
Registered: August 2005
Junior Member
I looked at "enable open on debug" and it is checked. Unchecking it
gave me even worse breakpoint behaviour.

But with playing around I discovered the following workaround:

The setup is as follows:

Project file: x.prj
Within the project I have among other files 'test.pro' and
'test_eventcb.pro' and 'test' is my main program. The breakpoint is set
in an event in 'test_eventcb.pro'

When running 'test' and looking at the breakpoint in
'test_eventcb.pro', the yellow circle is gone and, unlike with Dave,
the breakpoint is not listed in the 'Edit Breakpoint' dialog. Further
execution obviously does not break.

But, when clicking 'Add' in the 'Edit Breakpoints' dialog, the
previously set breakpoint magically appears and with it the broken
yellow circle. When I close the dialog and recompile only
'test_eventcb.pro', then the full yellow circle reappears. When I
continue running 'test', it now breaks correctly!

This helps me a lot now, but obviously it only works, when the event
with the breakpoint gets executed after this manual intervention.

I also had a typo in the previous post, I am using 6.0.1 and not 6.1,
sorry.

Werner
Re: Breakpoints in IDL 6.2 (windows) [message #45234 is a reply to message #45158] Thu, 18 August 2005 08:53 Go to previous message
eddie haskell is currently offline  eddie haskell
Messages: 29
Registered: September 1998
Junior Member
Maybe not your problem but I have found that if I have the "Enable Open
on debug" preference unchecked then breakpoints do not work well at all,
giving me a behaviour such as you have described.

Just something else to check.

Cheers,
eddie

David Fanning wrote:
> Folks,
>
> I'm having a problem with breakpoints and I'm working with RSI,
> trying to do a little research on what the problem might be.
> This happens in IDL 6.2, Windows version.
>
> I apparently have saved a project in which a file I was
> working on had a breakpoint in it. Now, when I open the project
> I can no longer set breakpoints in *any* file in the project.
> If I open the file in question, I see a "broken yellow circle",
> which normally indicates the file needs to be compiled to "set"
> the breakpoint. However, if I compile the file, the yellow dot
> disappears. When I run the file, there is no break.
>
> If I look at the Edit Breakpoint dialog, I can see the
> breakpoint there, and I can even remove it. But I can still
> not set breakpoints in any file in the project. If I remove
> all the breakpoints with the Edit Breakpoint dialog, and then
> save the project, I *still* cannot set breakpoints when I open
> the project in a fresh IDL session.
>
> Since I am not a good enough programmer to write programs
> without bugs, I am perplexed. :-(
>
> Has anyone else seen this problem? Do you have any clues
> as to what is going on? I guess I'm going to try re-installing
> IDL eventually. But I wanted to see if I could come up with a
> better solution before I resort to that.
>
> Cheers,
>
> David
Re: Breakpoints in IDL 6.2 (windows) [message #45237 is a reply to message #45158] Thu, 18 August 2005 08:05 Go to previous message
David is currently offline  David
Messages: 24
Registered: April 1997
Junior Member
Well, it's quite possible that the behavior I saw with the case of the
filename was a red herring, and something else I did had some effect
that fixed things.

Werner may be on to something, I have seen this behavior in 6.1 when
using projects.
Re: Breakpoints in IDL 6.2 (windows) [message #45238 is a reply to message #45158] Thu, 18 August 2005 08:02 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Werner writes:

> The problem is not new to IDL 6.2, I have seen it in previous versions
> and I actually have it right now in a project under 6.1. I reported it
> about two years ago to support.
>
> I am not 100% sure, but it only seems to occur when I use 'project' and
> the guibuilder? The last one I don't use anymore.

I'm pretty sure my problem doesn't have anything to do with
the GuiBuilder. ;-)

I've actually managed to get my project working again. What
I did was open the project in IDL 6.1, and made sure there
were no breakpoints. Then I saved the project. BUT, I had to
save it with a different name. (Saving it with the same name
was no help, which makes me think it might be a registry
problem.) After saving with a new name, I could open the
project in IDL 6.2 and carry on normally.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Re: Breakpoints in IDL 6.2 (windows) [message #45239 is a reply to message #45158] Thu, 18 August 2005 07:55 Go to previous message
Werner is currently offline  Werner
Messages: 3
Registered: August 2005
Junior Member
Sorry, can't offer a solution only add to the confusion:

The problem is not new to IDL 6.2, I have seen it in previous versions
and I actually have it right now in a project under 6.1. I reported it
about two years ago to support.

I am not 100% sure, but it only seems to occur when I use 'project' and
the guibuilder? The last one I don't use anymore.

Werner
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: DICOM Radiotherapy prescriptions
Next Topic: Re: Import .csv files

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

Current Time: Wed Oct 08 19:35:54 PDT 2025

Total time taken to generate the page: 0.00739 seconds