Theodoor Posted January 10, 2018 Share Posted January 10, 2018 Hi, I have made a very long scriptin AutoIt. But sometimes when i edit it, it gets stuck somwhere (mostly because i forgot to implement something in the script, like opening a file it needs to edit). But how do i check how far the script has progressed? Or at what line it is while it is running? It would really come in handy if this was possible. Kind regards, Theo Link to comment Share on other sites More sharing options...
Earthshine Posted January 10, 2018 Share Posted January 10, 2018 (edited) add logging. log every step, you can make it DEBUG or TRACE level or whatever you want. I am a logging fool. using the example given in that thread i got this from the test >"C:\Program Files (x86)\AutoIt3\SciTE\..\AutoIt3.exe" "C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3" /run /prod /ErrorStdOut /in "D:\OneDrive\Build\Development\AutoIT\LogViewer\logtest.au3" /UserParams +>10:40:15 Starting AutoIt3Wrapper v.17.224.935.0 SciTE v.3.7.3.0 Keyboard:00000409 OS:WIN_10/ CPU:X64 OS:X64 Environment(Language:0409) CodePage:0 utf8.auto.check:4 +> SciTEDir => C:\Program Files (x86)\AutoIt3\SciTE UserDir => C:\Users\Peter\AppData\Local\AutoIt v3\SciTE\AutoIt3Wrapper SCITE_USERHOME => C:\Users\Peter\AppData\Local\AutoIt v3\SciTE >Running AU3Check (3.3.14.2) from:C:\Program Files (x86)\AutoIt3 input:D:\OneDrive\Build\Development\AutoIT\LogViewer\logtest.au3 +>10:40:15 AU3Check ended.rc:0 >Running:(3.3.14.2):C:\Program Files (x86)\AutoIt3\autoit3.exe "D:\OneDrive\Build\Development\AutoIT\LogViewer\logtest.au3" --> Press Ctrl+Alt+Break to Restart or Ctrl+Break to Stop 01\10\2018 10:40:15 Trace A TRACE message 01\10\2018 10:40:15 Debug A DEBUG message 01\10\2018 10:40:15 Info A INFO message 01\10\2018 10:40:15 Warning A WARN message 01\10\2018 10:40:15 Error A ERROR message 01\10\2018 10:40:15 Fatal A FATAL message 01\10\2018 | DESKTOP-9VCE6D3 | Trace | A TRACE message 01\10\2018 | DESKTOP-9VCE6D3 | Info | A INFO message 01\10\2018 | DESKTOP-9VCE6D3 | Warning | A WARN message 01\10\2018 | DESKTOP-9VCE6D3 | Trace | A TRACE message 01\10\2018 | DESKTOP-9VCE6D3 | Error | A ERROR message 01\10\2018 | DESKTOP-9VCE6D3 | Fatal | A FATAL message 01\10\2018 | DESKTOP-9VCE6D3 | Error | A ERROR message +>10:40:15 AutoIt3.exe ended.rc:0 +>10:40:15 AutoIt3Wrapper Finished. >Exit code: 0 Time: 0.6086 Edited January 10, 2018 by Earthshine Theodoor 1 My resources are limited. You must ask the right questions 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