Jump to content

Graphical AutoIt Debugger


Stumpii
 Share

Recommended Posts

Send me an example file and I will take a look. I can't seem to get ScintillaNet to display correctly, even though Scintilla does.

I receive a lot of spammer requests for accounts, so try adding an account again. Send me a PM here with the name and I will look out for it.

Steve

this is exactly loaded from debugger editor

Opt("WinWaitDelay", 100)

Opt("WinDetectHiddenText", 1)

Opt("MouseCoordMode", 0)

$var = "��������"

Run('C:\Program Files\Mozilla Firefox\firefox.exe')

_WinWaitActivate("Google - Mozilla Firefox", "")

Sleep(200)

Send("autoit{ENTER}")

_WinWaitActivate("autoit - ��������� Google - Mozilla Firefox", "")

MouseClick("left", 387, 328, 1)

_WinWaitActivate("AutoIt | AutoItScript - Mozilla Firefox", "")

MouseMove(491, 189)

MouseDown("left")

MouseMove(499, 215)

MouseUp("left")

MouseClick("left", 547, 441, 1)

_WinWaitActivate("AutoIt - Mozilla Firefox", "")

MouseClick("left", 120, 432, 1)

at the status bar show : Develpement Mode UTF-8

Now What happens :

i write something in Greek and it dispalays it ok

Opt("WinWaitDelay", 100)

Opt("WinDetectHiddenText", 1)

Opt("MouseCoordMode", 0)

$var = "Ελληνικα"

Run('C:\Program Files\Mozilla Firefox\firefox.exe')

_WinWaitActivate("Google - Mozilla Firefox", "")

Sleep(200)

Send("autoit{ENTER}")

_WinWaitActivate("autoit - Αναζητηση Google - Mozilla Firefox", "")

MouseClick("left", 387, 328, 1)

_WinWaitActivate("AutoIt | AutoItScript - Mozilla Firefox", "")

MouseMove(491, 189)

MouseDown("left")

MouseMove(499, 215)

MouseUp("left")

MouseClick("left", 547, 441, 1)

_WinWaitActivate("AutoIt - Mozilla Firefox", "")

MouseClick("left", 120, 432, 1)

By the time i hit save everything turns just like the first time i loaded the script.

$var = "��������" e.t.c.

I press the SciteEdit and the file loads ok and also i can see the greek letters correctly.

The Encoding in Scite says that i use my Codepage Property.

Now the Strange thing

I retype the Greek letters and hit save and i get error on Tidy

Tidy AutoIt3 v2.1.0.0 Copyright © Jos van der Zande December 28, 2009

!> Script is encoded in UTF8 which is not supported .. stopping process.

So i am saying that something is wrong with the encoding of the file while saving.

although the status continuously say it is UTF-8.

So i retype greek and start Debug (i havent saved it!!)

also on the program trace i see there is a mixed up of the same kind.

At the Line $var = "Ελληνικα" The trace shows correctly the line beeing traced (i mean the greek letters)

but the variable you show on the treeview node holds ��������

Ok , I hope i gave you the best possible description of the problems.

This strange !! you fill ok the root trace node an

Link to comment
Share on other sites

There is also another thing i forgot to mention.

When i eliminate all greek characters and replace them with english and hit save the status bar shows US-ASCII

When i retype greek again and hit save the file is UTF-8

Link to comment
Share on other sites

I'd like to download this program but the links don't work on the webpage at:

http://www.thefoolonthehill.net/drupal/AutoIt%20Debugger

Apologies. Fixed the links now. For some reason it uploaded as ..exe instead of .exe

“Give a man a script; you have helped him for today. Teach a man to script; and you will not have to hear him whine for help.”AutoIt4UE - Custom AutoIt toolbar and wordfile for UltraEdit/UEStudio users.AutoIt Graphical Debugger - A graphical debugger for AutoIt.SimMetrics COM Wrapper - Calculate string similarity.

Link to comment
Share on other sites

Ok, I was reading all pages of the thread from the beginning so I see the unicode problem is being a really pain in the ass for long now. So not trying to make pressure here about the subject, just only want to share my experiences when dealing with It hoping that can help you Stumpii when you decide to fight again with this.

First of all, I am using AutoIt latest stable release and have not installed the beta (as being older I think it is useless now) and Scite full (Scite4AutoIt) last version from web. The testing machine is Windows XP SP3 spanish. The .NET version was 2.0 then I updated to 3.5.

OK, let's go for the thing. By default my Scite scripts are/were coded using the "code page property" (which I guess is ASCII). First I noticed some changes in the encoding related behavior of the debugger depending on the .NET framework version. Using 2.0 the debugger always stays in US-ASCII mode when loading a file with non english characters and just completely ignore those characters (they just disappear). With 3.5 update I started to notice what other people already said, the debugger encoding changes to UTF-8 and the special characters are shown as little boxes. Tried to save file from debugger and load again, same boxes, as the same in Scite or notepad++. Now the boxes appear in all them. Next thing I tried was to use notepad++ to convert one script with special characters to UTF-8 and save it. Scite showed correctly encoding and characters so I loaded into the debugger and then suddenly an ScintillaNet error window appeared complaining about encoding. So I created new au3 file, loaded in Scite, changed encoding to UTF8, saved, added some special characters and saved again and tried to load it with debugger and again same error. But I noticed two strange things. First, the characters are showed correctly as they should. Second, the encoding information shows US-ASCII. So it seems perhaps something is twisted somewhere and the program is trying to load/save ASCII as UTF, and UTF as ASCII. Here is the picture:

Posted Image

Also I attached the file showed in the picture, just in case.

Nuevo AutoIt v3 Script.au3

Edited by Alandor
Link to comment
Share on other sites

Also I think found a little bug with "Run to cursor" option. If I press the "Run to cursor" button, it executes the script, make debug and pauses at the cursor line as expected. Then I press "Stop" button. All OK. But, If now I press the "Run" button It always stop where the cursor was when I pressed "Run to cursor" before instead of continue executing all the script as It should. I have to exit debugger and load again to be able to just "Run" the script.

Link to comment
Share on other sites

Also I think found a little bug with "Run to cursor" option. If I press the "Run to cursor" button, it executes the script, make debug and pauses at the cursor line as expected. Then I press "Stop" button. All OK. But, If now I press the "Run" button It always stop where the cursor was when I pressed "Run to cursor" before instead of continue executing all the script as It should. I have to exit debugger and load again to be able to just "Run" the script.

This will be fixed in the next version.

Thanks, Steve

“Give a man a script; you have helped him for today. Teach a man to script; and you will not have to hear him whine for help.”AutoIt4UE - Custom AutoIt toolbar and wordfile for UltraEdit/UEStudio users.AutoIt Graphical Debugger - A graphical debugger for AutoIt.SimMetrics COM Wrapper - Calculate string similarity.

Link to comment
Share on other sites

Also I found ";AutoIt_Debugger_Command:Disable_Debug" is not working. I have this in my script:

;AutoIt_Debugger_Command:Disable_Debug
#include <FastFind.au3>
;AutoIt_Debugger_Command:Enable_Debug

But it's always debugging that include. Is it a bug or is it me doing something wrong ?

Greetings,

Alandor

Link to comment
Share on other sites

Also I found ";AutoIt_Debugger_Command:Disable_Debug" is not working. I have this in my script:

;AutoIt_Debugger_Command:Disable_Debug
#include <FastFind.au3>
;AutoIt_Debugger_Command:Enable_Debug

But it's always debugging that include. Is it a bug or is it me doing something wrong ?

Greetings,

Alandor

Each script file is processed separately, so what you need to do is add those command lines to the top and bottom of the FastFind.au3 file instead.

“Give a man a script; you have helped him for today. Teach a man to script; and you will not have to hear him whine for help.”AutoIt4UE - Custom AutoIt toolbar and wordfile for UltraEdit/UEStudio users.AutoIt Graphical Debugger - A graphical debugger for AutoIt.SimMetrics COM Wrapper - Calculate string similarity.

Link to comment
Share on other sites

  • 2 months later...

Enhancement request:

The debugger does not seem to look for #include files in the paths defined in "HKEY_CURRENT_USER\Software\AutoIt v3\AutoIt\Include". (see help file for #include)

Can support for this be added to the debugger?

I keep personal UDF, and UDFs that I have modified in a separate folder from the standard includes.

Link to comment
Share on other sites

  • 1 month later...

New version. Download from first post.

Rev 0.44.0 - 16 Aug 11

Added: Support for unlimited command line arguments.

Changed: Document settings now stored in binary .dat file that will support future changes better.

Changed: Removed Command Line Arguments from Options form and created a separate dockable form.

Fixed: Dock panel .config files are always recreated if they do not exist in the users profile. Thanks BodoWitcha.

Added: Forward and Back mouse buttons now navigate forward and back through the code editor window.

Changed: Rewrote code related to determining AutoIt location. Thanks BodoWitcha.

Fixed: Problem related to local variable fix introducing error with @error variable in debug mode. Thanks BodoWitcha.

Added: 'Use default AutoIt folders' and 'Portable AutoIt folders' options on Options tab.

Changed: Reorganised the CreateDebug module. This should speed up debug generation. Thanks BodoWitcha.

Fixed: 'Run to cursor' option remembers previous settings and stops next time the same script is debugged. Thanks Alandor.

Added: Processing of Include files from the registry. Thanks willichan.

“Give a man a script; you have helped him for today. Teach a man to script; and you will not have to hear him whine for help.”AutoIt4UE - Custom AutoIt toolbar and wordfile for UltraEdit/UEStudio users.AutoIt Graphical Debugger - A graphical debugger for AutoIt.SimMetrics COM Wrapper - Calculate string similarity.

Link to comment
Share on other sites

The Debugger doesn't find the include files of any script: "Determining path of included file from string: #include <ButtonConstants.au3>...". See the attached screenshot.

My OS is Win7 64 bit italian.

The Debugger options are OK: "C:\Program Files (x86)\AutoIt3\Beta\Include". The same happens on production environment.

Best regards

Peppe

post-1378-0-96709800-1313648644_thumb.gi

post-1378-0-05528600-1313648821_thumb.gi

AccountConvert.au3

Edited by gcriaco
Link to comment
Share on other sites

The Debugger doesn't find the include files of any script: "Determining path of included file from string: #include <ButtonConstants.au3>...". See the attached screenshot.

My OS is Win7 64 bit italian.

The Debugger options are OK: "C:\Program Files (x86)\AutoIt3\Beta\Include". The same happens on production environment.

Best regards

Peppe

Please post the screenshot. I have tried it here and it appears to be fine. This is what you should see:

http://screencast.com/t/CANGix9t

Thanks, Steve

“Give a man a script; you have helped him for today. Teach a man to script; and you will not have to hear him whine for help.”AutoIt4UE - Custom AutoIt toolbar and wordfile for UltraEdit/UEStudio users.AutoIt Graphical Debugger - A graphical debugger for AutoIt.SimMetrics COM Wrapper - Calculate string similarity.

Link to comment
Share on other sites

See my previous post for attachments.

Thanks

Peppe

Is your version of Windows an Italian version? If it is, then Program Files isn't called Program Files on that version is it?

If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Link to comment
Share on other sites

See my previous post for attachments.

Thanks

Peppe

New version should fix that. Download from first post.

Rev 0.44.1 - 18 Aug 11

Fixed: Issue determining Include paths when Registry is not used. Thanks gcriaco.

Added: Highlighting of identical text (variables, functions, etc.).

Thanks, Steve

“Give a man a script; you have helped him for today. Teach a man to script; and you will not have to hear him whine for help.”AutoIt4UE - Custom AutoIt toolbar and wordfile for UltraEdit/UEStudio users.AutoIt Graphical Debugger - A graphical debugger for AutoIt.SimMetrics COM Wrapper - Calculate string similarity.

Link to comment
Share on other sites

New version should fix that. Download from first post.

Rev 0.44.1 - 18 Aug 11

Fixed: Issue determining Include paths when Registry is not used. Thanks gcriaco.

Added: Highlighting of identical text (variables, functions, etc.).

Thanks, Steve

Anything OK. Thank you very much

Link to comment
Share on other sites

  • 2 weeks later...

New version available. Download link in first post.

This should make debugging more stable in general and especially in Win 7 with UAC enabled.

Rev 0.44.2 - 27 Aug 11

Fixed: Re-ordered ConsoleWrite so that it writes to the Debugger before a breakpoint if a breakpoint is set on that line.

Fixed: Sending a variable to the debugger was clearing the @error and @extended macros.

Changed: Better detection and debugging of system include locations.

Changed: System include files now debugged in %TEMP% folder, not AutoIt include folders. Thanks BodoWitcha.

Changed: Removed calls to all includes in the debug include.

“Give a man a script; you have helped him for today. Teach a man to script; and you will not have to hear him whine for help.”AutoIt4UE - Custom AutoIt toolbar and wordfile for UltraEdit/UEStudio users.AutoIt Graphical Debugger - A graphical debugger for AutoIt.SimMetrics COM Wrapper - Calculate string similarity.

Link to comment
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
 Share

  • Recently Browsing   0 members

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