Jump to content

Problem with #AutoIt3Wrapper_run_debug_mode=Y


Go to solution Solved by ahha,

Recommended Posts

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

  • Moderators

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

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 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

 

Link to comment
Share on other sites

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

App: Au3toCmd              UDF: _SingleScript()                             

Link to comment
Share on other sites

  • Moderators

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

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 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

 

Link to comment
Share on other sites

  • Moderators

ahha,

Best to thank Jos, not me. ;)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 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

 

Link to comment
Share on other sites

  • Developers

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

  • 3 years later...

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...