-
Posts
79 -
Joined
-
Last visited
Everything posted by valdemar1977
-
Small update available here Fix missed #Include <WinAPISysWin.au3>
-
Hi, @zbigj. Workaround for debugging include files is: Open your Main au3 file and found #include section Split includes on two parts - your own includes files and standard Autoit UDFs (and/or UDFs that you don't want to debug) Comment all includes that you do not need to debug and save file. Run au3stripper with /mo parameter "C:\Program Files (x86)\AutoIt3\SciTE\au3Stripper\AU3Stripper.exe" <main_au3_file> /mo Open stripped au3 file and put all commented includes at the includes section of it, uncomment it and add #include "_dbug.au3" Start your script on debug with F5 as usually.
-
At the moment for debug purposes you can use Au3stripper for merge all recources (includes) to one main script file. Command is C:\Program Files (x86)\AutoIt3\SciTE\au3Stripper\AU3Stripper.exe <main_au3_file> /mo /mo - meant Merge Only (other stripper parameters you can find in docs). After stripping you can found a stripped file in the same dir as the source. Open it in editor and add #include "_dbug.au3" at the include section of stripped file, then start it with F5 to debug.
-
Don't panic . In future version I'm planing to add a keyword for _dbug that will stop execution after that keyword.
-
Hi @zbigj _dbug cannot debug in include files try to use #include "_dbug.au3" test2() Func test2() MsgBox(0,'Hi there!','Great debugger !') sleep 1 ; Put breakpoint here EndFunc
-
Hi @Mbee. Sorry for delay in answer. Original DBUG was designed to using with Scite4Autoit3 or other code editors based on Scite. Please try to start your script in standard Autoit3 editor with including #include <_dbug.au3>. When the main DBUG window is appear in Scite4Autoit3 window with your source code try to put break point and then press start in DBUG GUI. About upgrade ISN AutoIt Studio debugger with latest DBUG, please address this question to @ISI360 who is a developer of ISN Autoit Studio. Source code of DBUG is available.
-
Version 2018.05.24
3,062 downloads
Dbug is graphical debugger for AutoIt. Project started by @Heron in 2009 and now supported by @asdf8 and @valdemar1977. Features Debug the complete script or just parts of it Display run status (line number of currently executed function) GUI default always-on-top in the upper right corner for comfortable debugging WM_NOTIFY and WM_COMMAND hook to prevent interference with possible message handlers Display scope, type and value of variables, expressions, macro's and constants (global AND function local) Execute commands in an immediate window. Can be expressions, functions and assignments Detailed display of array, struct and object variables Dynamic display of variable value in the source code (under cursor) Array table viewer with ability to view the sub-arrays, the correct handling of macro @Error, @Extended and other changes OEM and ANSI console output Conditional breakpoints Saving settings and debugging state and much more... How to use Extract from downloaded archive _Dbug.au3 to your Autoit include dir Add #include <_Dbug.au3> in to your code and run code Before compile or buid comment or remove #include <_Dbug.au3> from your code-
- debug
- programming
-
(and 3 more)
Tagged with:
-
Bugfix release: "C:\Program Files (x86)\AutoIt3\UDF\_Dbug.au3" (1269) : ==> Subscript used on non-accessible variable.: error after exit (by Ctrl+F10 or Quit button) from executing script (in some cases) - fixed Problem with parsing @ScriptLineNumber macros - fixed Latest version always available here
-
@asdf8, I will send you a source code of _DBUG for review via pm. If you will find that my modifications is useful please feel free to include them in next release.
-
@asdf8 Line 514-515 is duplicate or feature? GUICtrlSetState($DBG_btnRunCursor, $GUI_UNCHECKED) GUICtrlSetState($DBG_btnRunCursor, $GUI_UNCHECKED)
-
-
@asdf8 great, thank you! Suggestion to add check for buttons with hotkeys before sending BM_CLICK Msg. It will exclude a casual pressing hotkeys. For example at the moment when you press F4 twice during script running you will need to press F5 twice to continue. As an example Func DBG_btnBreak() If GUICtrlGetState($DBG_btnBreak) = $GUI_SHOW+$GUI_ENABLE Then GUICtrlSendMsg($DBG_btnBreak, $BM_CLICK, 0, 0) EndIf EndFunc
-
@asdf8, when generating DbugScript.au3 is it possible to put #Include-Once EnvSet("___SrcFullPath", "C:\Program Files (x86)\AutoIt3\UDF\Test_3.au3") code after last #pragma compile ?
-
Попробую . I'll try it. At the moment I'm using @Yashied SciTE mod.
-
@asdf8, small bug. For reproduce: Use Test_2.au3 Run script Press F5 for start execution Press F4 for pause Press F5 for continue - script start and pause again(!) When use a button for same operations in _DBUG GUI instead of hotkeys script continue to execute normally. Look like as a problem with a focusing of pause button. Yeah... Problem is here (line 1382) Func DBGbtnBreak() GUICtrlSendMsg($DBGbtnBreak, $BM_CLICK, 0, 0) _GUICtrlButton_SetState($DBGbtnBreak) EndFunc After commenting line 1382 it is work as need.
-
BTW, may be Autoit studio can be a platform for IDE of the dream .
-
Hi, @ISI360. In fact not this one, but original version of DBUG by @Heron, with small modifications by @pandel. https://www.autoitscript.com/forum/topic/103142-another-debugger-for-autoit/?page=2#comment-1090579
-
In fact Autoit need a full featured IDE including source editor, debugger, GUI builder, project management and so on (as an example @ISI360 Autoit Studio).
-
Well, in some cases I'm has a problems with redrawing TAB area (in Windows 8.1 x64) when starting in x64-bit mode...
-
Hi @asdf8. Small bug in lines 395-397. For $val = 1 To 25 ;enable buttons ControlEnable($frmDBUG, "", "[CLASS:Button;INSTANCE:" & $val & "]") Next You set $val var as counter of button id and the use this counter on lines 406-407 GUICtrlSetTip($DBGListView, "Display expressions" & $val) GUICtrlSetTip($DBGbtnClearList, "Clear expressions list" & $val & @CRLF & @CRLF & "To disable updates expressions list," & @CRLF & 'click the button while holding down "Ctrl"') As result wrong button and list tip in some cases.
-
Great update!!! Will test it.
-
I'm ready friend!!!
-
Hi @asdf8 Yes, it is right, but you limit array only by rows not by columns. For example if my array has 300 columns and I need to see values its not help me in this case. Also I'm found strange graphic issue with ArrayView window. Its look like a grey space at the right of spreadsheet. It is only for arrays with a number of columns more then 11 . Please run attached script and try to visualize $ArrayHuge. array.au3 Also I'm find that main _DBUG window is freeze on lot of time on huge (2000:2000 elements) arrays when I'm press pause. May be it is because you try to show a lot of values in main _DBUG window?
-
Sorry it is not a problem. I'm edit my post above. It is only in case when comment block is above of #include <DBUG.au3>. You are right. May be you can use the same method as I'm - stdout console. You opinion on 3) ?
-
Try this one... #include "_Dbug.au3" $a = 5 $b = 6 $d = 7 If $a = 5 Or _ $a = 4 Or _ ($b = 6 And $d = 7) Then $a = 5 Else $a = 6 EndIf