Sign in to follow this  
Followers 0
ahha

Problem with #AutoIt3Wrapper_run_debug_mode=Y

10 posts in this topic

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

Share this post


Link to post
Share on other sites



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._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

Share this post


Link to post
Share on other sites

Thanks.  It was driving me nuts.  I'll follow your recommendation and add more text to the line.

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

If you use " ;~ " instead of " ; " to comment out a line, debug seems to run normally even if it only says " ;~ debug "

Edited by Palestinian

Share this post


Link to post
Share on other sites

#5 ·  Posted (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 by Exit

My UDFs, Abbrevs and Snippets
If you like my post, just click the like button :) 

Share this post


Link to post
Share on other sites

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._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

Share this post


Link to post
Share on other sites

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. :thumbsup:


My UDFs, Abbrevs and Snippets
If you like my post, just click the like button :) 

Share this post


Link to post
Share on other sites

Thanks Melba - very useful.

Share this post


Link to post
Share on other sites

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._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

Share this post


Link to post
Share on other sites

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

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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