Guest steveam Posted March 16, 2005 In version 2.6 when you opened the task tray icon you were able to see where the script was. I am writing a script that is stopping, and I am having trouble identifing where in the code it's stopped. Where should I be looking? Thanks. Share this post Link to post Share on other sites
SlimShady 1 Posted March 16, 2005 There is an option you can enable. It's called TrayIconDebug. If it's enabled you can see which line is currently executed. You see it when you hover over the tray icon. Here's the code: Opt("TrayIconDebug", 1) Share this post Link to post Share on other sites
steveR 0 Posted March 16, 2005 Also helpful, if you are using the latest betas, is peppering your program with TrayTip() to show a balloon with info. AutoIt3 online docs Use it... Know it... Live it...MSDN libraryglobal Help and SupportWindows: Just another pane in the glass. Share this post Link to post Share on other sites
trids 2 Posted March 17, 2005 Beware: TrayIconDebug does not work for NT.And you may also find the _Debug() UDF by Cyberslug extremely useful...Func _Debug($message) ;From Cyberslug, circa 2004-05-10 ;Until AutoIt gets full debugging features, the following might help some people: ; ; Example usage: ; _Debug('#ds');open log window ; ; start of script goes here... ; _Debug("The value of some variable foo is:" & $foo) ; _Debug("Another debug message") ; ; end of script... ; _Debug('#de');keep log window open until you close it $sAutoItWinGetTitle = AutoItWinGetTitle() If $message = "#ds" Then WinActivate( $sAutoItWinGetTitle ) WinMove ( $sAutoItWinGetTitle, "", @DESKTOPWIDTH / 4, @DESKTOPHEIGHT / 4, @DESKTOPWIDTH / 2, @DESKTOPHEIGHT / 2 ) WinSetState( $sAutoItWinGetTitle, "", @SW_SHOW ) ElseIf $message = "#de" Then WinWaitClose($sAutoItWinGetTitle) Else Local $previous = ControlGetText( $sAutoItWinGetTitle,"", "Edit1") ControlSetText ( $sAutoItWinGetTitle,"", "Edit1", $previous & $message & @CRLF) ControlSend( $sAutoItWinGetTitle,"", "Edit1", "^{END}") EndIf EndFunc Share this post Link to post Share on other sites
Guest steveam Posted March 17, 2005 Thanks. This is what I was looking for.There is an option you can enable.It's called TrayIconDebug. If it's enabled you can see which line is currently executed. You see it when you hover over the tray icon.Here's the code:Opt("TrayIconDebug", 1)<{POST_SNAPBACK}> Share this post Link to post Share on other sites