Debugger problem

Just starting out? Need help? Post your questions and find answers here.
codefire
User
User
Posts: 38
Joined: Thu Mar 15, 2007 4:32 pm
Location: UK

Debugger problem

Post by codefire »

This is weird. I can set a breakpoint in my program, and when the code runs it hits the breakpoint as expected. Problem then is all debugger controls are greyed out apart from Kill Program.

I'm definately compiling with debugger enabled - it's set in the compiler options.

I can't figure out why the compiler controls aren't working!
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

Are you sure it stops because of the breakpoint ? What is the message it shows in the statusbar ?

If the program stops because of an error on the line you sometimes cannot continue (fatal error)
quidquid Latine dictum sit altum videtur
codefire
User
User
Posts: 38
Joined: Thu Mar 15, 2007 4:32 pm
Location: UK

Post by codefire »

freak wrote:Are you sure it stops because of the breakpoint ? What is the message it shows in the statusbar ?

If the program stops because of an error on the line you sometimes cannot continue (fatal error)
Yes, definately a breakpoint.

Also, CallDebugger also works, but once invoked I can't single step as those controls appear greyed out.

One other thing. If I select the "Stand alone debugger" instead, that works fine - I can set BP, signle step and so on. It seems to be a problem with the IDE debugger only.
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

What happens if you switch to another source then back?
codefire
User
User
Posts: 38
Joined: Thu Mar 15, 2007 4:32 pm
Location: UK

Post by codefire »

Trond wrote:What happens if you switch to another source then back?
Bizarrely a reboot seems to have fixed it. If it happens again I will try what you suggested.

Cheers,
Codefire
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

I had a couple of these reboot issues when on XP. On Vista so far it hasn't happened. Strange ehh?
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
Post Reply