Sign in to follow this  
Followers 0
izzy

Debug Output window

4 posts in this topic

I downloaded the <GUIDebug.au3> and loved the notion that i didn't have to use MsgBox every time i needed to see a bunch of results that i ned t check again and again.

I changed it a bit and used an Edit controlif thats ok.

;;;;;;; <GUIDebug_2.au3> ;;;;;;;

#include <GUIConstants.au3>

Dim $LocalDebugMsg

$EM_SCROLLCARET = 0x00B7

GuiCreate ("Debug Window",500,200,0,0,"",$WS_EX_TOPMOST)

$DebugFont="Georgia"

$DebugEdit = GUICtrlCreateEdit ("", 5,5,485,160, $ES_AUTOVSCROLL+$WS_VSCROLL)

GUICtrlSetFont ($DebugEdit, 9, 400, 2, $DebugFont)

GuiSetState (@SW_SHOW)

Func Debug($DebugMsg)

$LocalDebugMsg &= $DebugMsg & @CRLF

GUICtrlSetData ($DebugEdit, $LocalDebugMsg)

GUICtrlSendMsg ($DebugEdit, $EM_SCROLLCARET,0,0)

EndFunc

;;;;;;;;; END;;;;;;;;;;;;;;

Maybe someone has some ideas on how to make it print out values you already declared in the script and is assigned some text, if you type ? and the variable and hit enter:

?$SomeString<Enter>

or

Debug.Print $SomeString<Enter>

...much like we do in VB's Immediate (debug) window

Any thoughts on how we could accomplish this?

TY B)

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Not sure what editor you use but most some here use Scite4AutoIt3 that uses an output pane that can print out messages from ConsoleWrite(). This is a very handy feature for the editor and does it easy along with all the other features that it offers. Some other editors may have the same output feature.

If you still wish to create a debug window then a search in this forum should raise results as some others have done the same before. I believe that just a simple UDF with ControlSend() to your debug window would achieve your result.

Edit: Biased assumption noted and changed.

Edited by MHz

Share this post


Link to post
Share on other sites

Not sure what editor you use but most here use Scite4AutoIt3

"Most here"? May I ask where you get your information? Has there been some poll of forum participants where SciTE was found to be used more than others? Not doubting your word, just looking for the location of this empirical data.

My Projects:DebugIt - Debug your AutoIt scripts with DebugIt!

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

May I ask where you get your information?

JdeB actually sayd "Not evryone uses SciTE" or something along those lines when i made a similar remark on a similar topic.

*edit here it is: http://www.autoitscript.com/forum/index.ph...ndpost&p=118255

Edited by w0uter

My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0