Clear the window debugger [Resolved by NETMAESTRO]

Just starting out? Need help? Post your questions and find answers here.
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5494
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Clear the window debugger [Resolved by NETMAESTRO]

Post by Kwai chang caine »

Hello everybody.

I want to know, if is possible to clear, with a code, the window debugger ?

Because, when i have many variables in a loop, i don't have the time to read all :cry:
Last edited by Kwai chang caine on Tue Jan 01, 2008 8:54 pm, edited 2 times in total.
ImageThe happiness is a road...
Not a destination
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: Clear the window debugger

Post by PB »

It's been requested but not implemented yet.
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5494
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Post by Kwai chang caine »

Thanks PB for your answer 8)

It's not possible with the handle ?
ImageThe happiness is a road...
Not a destination
Marco2007
Enthusiast
Enthusiast
Posts: 648
Joined: Tue Jun 12, 2007 10:30 am
Location: not there...

Post by Marco2007 »

What about Breakpoint + clear output + continue?
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

You can use mine, it's the one I use internally:

http://www.greatlakescode.com/ClearDebugWindow

Put it in your Userlibraries folder, remember to restart the compiler or ide.

Test program:

Code: Select all

Debug "Happy New Year!" 
Debug "Bullfrogs rule the world" 
Debug "Stand by for a cleared debug window in one second..." 
Debug "" 
Delay(1000) 
ClearDebugWindow()
BERESHEIT
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5494
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Post by Kwai chang caine »

Thanks Master of NET

I'm so sad, because i have put your library into the "C:\Program Files\PureBasic\v4.10\PureLibraries\UserLibraries", i run the PureBasic v4.20 Beta and nothing passed :(

Then, i have the same operation with the PureBasic v4.10 and i have the same resultat :(
ImageThe happiness is a road...
Not a destination
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

The original version I posted was an earlier one that had a bug. Try downloading it again and see if it works for you. If the IDE is open, make sure you do Compiler->Restart Compiler. It is going to work, guaranteed.
BERESHEIT
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5494
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Post by Kwai chang caine »

I don't understand, i have download again your library.
I have close the pureBasic
I have put your library into the "C:\Program Files\PureBasic\v4.10\PureLibraries\UserLibraries"
I have run purebasic 4.10 and run your code.

And nothing works :(
It's the same result with Purebasic 4.20

I have perhaps did a mistake :oops:
ImageThe happiness is a road...
Not a destination
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

Does the command "ClearDebugWindow()" automatically case-correct? I mean, is it recognized as a command? If so, what is the return value? It will return 1 if it believes it was successful, 0 if not.
BERESHEIT
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5494
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Post by Kwai chang caine »

I have write this code in the IDE of PureBasic v4.20 :

Code: Select all

Debug "Happy New Year!" 
Debug "Bullfrogs rule the world" 
Debug "Stand by for a cleared debug window in one second..." 
Debug "" 
Delay(1000) 
Debug ClearDebugWindow() 
And the return of debugger is :

Code: Select all

Happy New Year!
Bullfrogs rule the world
Stand by for a cleared debug window in one second...

0
They are no error message.
I think the instruction is reconized :roll:
Last edited by Kwai chang caine on Tue Jan 01, 2008 6:55 pm, edited 2 times in total.
ImageThe happiness is a road...
Not a destination
milan1612
Addict
Addict
Posts: 894
Joined: Thu Apr 05, 2007 12:15 am
Location: Nuremberg, Germany
Contact:

Post by milan1612 »

Works like a charm here :)
(XP, 4.10)
Windows 7 & PureBasic 4.4
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5494
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Post by Kwai chang caine »

I have again make a mistake :oops:
ImageThe happiness is a road...
Not a destination
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

AHA!! I know what the problem is, it's a language barrier. The code looks for a window with title "Debug Output -" as the first 14 characters but you're not using English, are you? Yours is a different language I'll bet. What is the window title of your debug output window?
BERESHEIT
milan1612
Addict
Addict
Posts: 894
Joined: Thu Apr 05, 2007 12:15 am
Location: Nuremberg, Germany
Contact:

Post by milan1612 »

Should be "Messages du débogueur - " (according to the language file)
Windows 7 & PureBasic 4.4
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5494
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Post by Kwai chang caine »

@ Milan1612
Yes

@NETMAESTRO
You are so clever 8)

The title of my debugger is :
Messages du débogueur -
ImageThe happiness is a road...
Not a destination
Post Reply