ahha Posted May 16, 2014 Share Posted May 16, 2014 Long story short I have a large program where I have comments noting how to debug sections, etc. Console debug seemed to stop working. Have whittled the program down to this code which shows console debug stopping. Is a comment with the word "debug" in it not allowed? I have tried this on 2 machines so I don't think I'm dreaming. Also releaded latest version of autoit. #AutoIt3Wrapper_run_debug_mode=Y ; use this to debug in console window <--- LOOK MsgBox(4096 + 262144, "Status", "Debug console window shows this line being executed.") ; debug ;#AutoIt3Wrapper_run_debug_mode=Y seems to be stopped by the above commented out line - very strange MsgBox(4096 + 262144, "Status", "Debug console window does not show this line being executed - yet here we are - very strange.") Also attached: Debug does not seem to work v1b.au3 Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted May 16, 2014 Moderators Share Posted May 16, 2014 ahha,I can confirm that a "; debug" line appears to act as a debug toggle - Jos needs to look at this. The short workaround is to add some further characters to the "; debug" line - when I do that the debug continues as normal. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Solution ahha Posted May 16, 2014 Author Solution Share Posted May 16, 2014 Thanks. It was driving me nuts. I'll follow your recommendation and add more text to the line. Link to comment Share on other sites More sharing options...
Palestinian Posted May 16, 2014 Share Posted May 16, 2014 (edited) If you use " ;~ " instead of " ; " to comment out a line, debug seems to run normally even if it only says " ;~ debug " Edited May 16, 2014 by Palestinian Link to comment Share on other sites More sharing options...
Exit Posted May 16, 2014 Share Posted May 16, 2014 (edited) I like this feature. You can suspend and resume debugging during run. See here: #AutoIt3Wrapper_run_debug_mode=Y ; use this to debug in console window <--- LOOK MsgBox(Default, Default, "Start of debug", 1) $a = 2 $b = 5 ; debug ;~ suspend debug For $i = 1 To 100 $c = $i Next MsgBox(Default, Default, "not visible in log", 1) ; debug ;~ resume debug MsgBox(Default, Default, "now visible in log", 1) The loop is not shown in the output. No useless scrolling. Edited May 16, 2014 by Exit App: Au3toCmd UDF: _SingleScript() Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted May 16, 2014 Moderators Share Posted May 16, 2014 Exit,There is already a directive to toggle the debug process: #AutoIt3Wrapper_run_debug_mode=Y ; use this to debug in console window <--- LOOK MsgBox(Default, Default, "Start of debug", 1) $a = 2 $b = 5 #AutoIt3Wrapper_Run_Debug=off For $i = 1 To 100 $c = $i Next MsgBox(Default, Default, "not visible in log", 1) #AutoIt3Wrapper_Run_Debug=on MsgBox(Default, Default, "now visible in log", 1)M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Exit Posted May 16, 2014 Share Posted May 16, 2014 Exit, There is already a directive to toggle the debug process: So, I learned a bit more. Thanks Melba. ..... but, .... ; debug is a fine abbreviation. App: Au3toCmd UDF: _SingleScript() Link to comment Share on other sites More sharing options...
ahha Posted May 16, 2014 Author Share Posted May 16, 2014 Thanks Melba - very useful. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted May 16, 2014 Moderators Share Posted May 16, 2014 ahha,Best to thank Jos, not me. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Developers Jos Posted May 16, 2014 Developers Share Posted May 16, 2014 Best to thank Jos, not me. Not really, I just incorporated the code written by Klaatu at the time Func RunAutoItDebug($sFileToDebug, ByRef $sDebugFile) ; Klaatu on AutoIt3 forum ; DebugIt.au3 http://www.autoitscript.com/forum/index.php?s=&showtopic=35218&view=findpost&p=258014 ; ; Version 1.0 - initial release SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
ahha Posted July 30, 2017 Author Share Posted July 30, 2017 (edited) I know it's an old thread. Just wanted to mention that if ;debug is commented out like this: #cs ;debug #ce It still toggles debugging! Edited July 30, 2017 by ahha spelling Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now