Jump to content

Graphical AutoIt Debugger


Stumpii
 Share

Recommended Posts

ha ha

since we got vista

a lot

Rosi

lol

@OP

is there any way yu could compile it so it does not need the .net 2.0 framework?

0x616e2069646561206973206c696b652061206d616e20776974686f7574206120626f64792c20746f206669676874206f6e6520697320746f206e657665722077696e2e2e2e2e

Link to comment
Share on other sites

  • 1 month later...

Release new version (v0.25.0). This includes the following changes:

Fixed: When debugging an include file in a sub-folder, additional include files are no longer assumed to be in the parent folder. Thank fishy.

Added: Optional disabling of automatic update checking. Check for updates can still be run from the Windows Start menu. Thanks fishy.

Changed: Variables window now becomes Watch window.

Added: User selection of watched variables, instead of listing all variables. Thanks fishy and gcriaco.

Changed: Code associated with writing variable valus back to the debugger. Thanks Malky.

Fixed: Lines containing $ signs in strings now not considered variables. Thanks Bastler and Fishy.

Fixed: Current running line shown in yellow again.

Changed: Current line when running is now highlighted constantly (does not change when selection changed). Thanks gcriaco.

Added: Watching for external changes to files and prompt to reload. Thanks =sinister=.

Fixed: Issue with windows when switching between dev and debug.

The new version can be downloaded here.

“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 weeks later...

Variables:

- changing the variable value double-clicking on the watch window/variable name, the variable value showed in the list view doesn't thange immediately as expected but after the next debug step

- adding a variable to the watch list after is declaration, you always see "Not declared" as variable value (no results double-clickin onit and changing value)

Suggestion: drag & drop variables to the watch list should add them to this window.

Many thanks for this beautiful tool

Peppe

Link to comment
Share on other sites

  • 2 months later...

I'd like to find out how to view arrays in the Watch List.

If I right click on the name of the array and select Add Watch it does show one line in the watch list with "Not Declared"

It doesn't show all of entries of the array. The array is declared.

I'm using ver. 0.26

When I add a variable to the watch list it always shows "Not Declared" even though it is declared and has to have something in it. Some times it shows what is in the variable when the next line is executed.

Thanks for a great program,

Docfxit

Link to comment
Share on other sites

When a problem report is created and I try to send it within the program it gives me an error saying:

"The email could not be sent. Please report the problem to the developer manually"

It doesn't say how to get it to you.

When I select the error report tab it lets me highlight everything but it doesn't let me copy it so I could paste it here. I have attached a screen capture of it for you.

Thanks for a great program.

Docfxit

post-6489-12543310170396_thumb.jpg

post-6489-12543315704841_thumb.jpg

Edited by docfxit
Link to comment
Share on other sites

corgona corgano, the latest version is .net 3.5, if you still haven't switched to 2.0 then I recommend upgrading immediately.

I was on XP when i wrote that. Now i am on win7.

Are you ever going to make something similar to koda so you can make GUI's and what they do at the same time? Have you tried to work with the creator of koda?

0x616e2069646561206973206c696b652061206d616e20776974686f7574206120626f64792c20746f206669676874206f6e6520697320746f206e657665722077696e2e2e2e2e

Link to comment
Share on other sites

  • 4 weeks later...

I was on XP when i wrote that. Now i am on win7.

Are you ever going to make something similar to koda so you can make GUI's and what they do at the same time? Have you tried to work with the creator of koda?

You can access Koda from the Tools menu. I have no plans on writing my own GUI editor.

Stumpii

“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

I don't mean writing your own, but merging koda into this; in the sense that if you double click a control in the GUI /koda section, then it will bring you to the case statement for that control. Have you asked the auther of koda what he thought of this idea?

0x616e2069646561206973206c696b652061206d616e20776974686f7574206120626f64792c20746f206669676874206f6e6520697320746f206e657665722077696e2e2e2e2e

Link to comment
Share on other sites

  • 3 weeks later...

I don't mean writing your own, but merging koda into this; in the sense that if you double click a control in the GUI /koda section, then it will bring you to the case statement for that control. Have you asked the auther of koda what he thought of this idea?

To be honest it is probably not feasible.

Stumpii

“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

A new version of the debugger is available (see first post). Majority of changes are related to the Watch window, so let me know of any problems.

Thanks,

Stumpii

Rev 0.27.0 - 14 Nov 09

Fixed: Variables after ';' no longer cause errors. Thanks BodoWitcha

Added: Class Viewer scrolls selected item to top, not just into view.

Changed: Double clicking a variable and changing the value now updates the list immediately. Thanks gcriaco.

Changed: Adding variable to watch list now shows its value immediately if it is declared. Thanks gcriaco.

Fixed: Autocomplete no longer automatically inserts the word when only one word is available.

Fixed: Cancel a save operation on an unsaved file no longer generates an error. Thanks Doug.

Changed: Update to latest (v2.2) of ScintillaNet.

Changed: Now possible to drag and drop variables from an open script or the Class Viewer to the Watch window to add variables to be watched.

Changed: Variable edit textbox now changes size with the form. Thanks BodoWitcha.

Changed: Debug relative files when parsing for includes only. Thanks fishy.

Added: Help button to ToolChest to link to help file for selected function.

Added: Option to automatically Tidy source code when save is performed.

Changed: Trace and Watch now scroll 1 page/screen at a time when mouse is configured that way.

Added: Variables can be deleted from the watch with the Del key.

“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

I get an expression error debugging this:

$mode = 1
    Switch $Mode
        Case 0
            $sHeader = "POST " & "test" & " HTTP/1.1" & @CRLF & _
                    "Host: " & "test" & @CRLF & _
                    "test" & @CRLF & _ ;"User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5) Gecko/8120122 Firefox/3.0.5 (.NET CLR 3.5.30729)" & @CRLF & _
                    "Accept: text/html" & @CRLF & _ ;"Accept: text/html;,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" & @CRLF & _
                    "Accept-Language: en-us,en;q=0.5" & @CRLF & _
                    "Accept-Encoding: " & @CRLF & _
                    "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7" & @CRLF & _
                    "test" & _
                    "Referer: " & "test" & @CRLF & _
                    "Content-Length: " & StringLen("test") & @CRLF & @CRLF & "test"
        Case 1
            $sHeader = "GET " & "test" & " HTTP/1.1" & @CRLF & _
                    "Host: " & "test" & @CRLF & _
                    "test" & @CRLF & _ ;"User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11 (.NET CLR 3.5.30729)" & @CRLF & _
                    "Accept: text/html" & @CRLF & _;,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" & @CRLF & _
                    "Accept-Language: en-us,en;q=0.5" & @CRLF & _
                    "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7" & @CRLF & _
                    "test"
                EndSwitch

removing the commented lines solves the problem.

Edited by Datenshi
Link to comment
Share on other sites

I get an expression error debugging this:

$mode = 1
    Switch $Mode
        Case 0
            $sHeader = "POST " & "test" & " HTTP/1.1" & @CRLF & _
                    "Host: " & "test" & @CRLF & _
                    "test" & @CRLF & _ ;"User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5) Gecko/8120122 Firefox/3.0.5 (.NET CLR 3.5.30729)" & @CRLF & _
                    "Accept: text/html" & @CRLF & _ ;"Accept: text/html;,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" & @CRLF & _
                    "Accept-Language: en-us,en;q=0.5" & @CRLF & _
                    "Accept-Encoding: " & @CRLF & _
                    "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7" & @CRLF & _
                    "test" & _
                    "Referer: " & "test" & @CRLF & _
                    "Content-Length: " & StringLen("test") & @CRLF & @CRLF & "test"
        Case 1
            $sHeader = "GET " & "test" & " HTTP/1.1" & @CRLF & _
                    "Host: " & "test" & @CRLF & _
                    "test" & @CRLF & _ ;"User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11 (.NET CLR 3.5.30729)" & @CRLF & _
                    "Accept: text/html" & @CRLF & _;,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" & @CRLF & _
                    "Accept-Language: en-us,en;q=0.5" & @CRLF & _
                    "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7" & @CRLF & _
                    "test"
                EndSwitch

removing the commented lines solves the problem.

Thanks. That will be fixed in the next release.

Stumpii

“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

  • 1 month later...

First of all tnx to Stumpii for this excellent debugger!!

Have some issue here: Please could someone explain how to use it with command line arguments.

I read the manual but doesnt work. Tried it via "Autoit Debugger Options" too, but cmdline[0]

still stays empty. ;)

Link to comment
Share on other sites

You can only use cmd line arguments on a compiled script.

example:

If $CmdLine[0] > 0 Then
    MsgBox(0,"",$CmdLine[1])
EndIf

Compile this and create a shortcut to it

Right click - propities on the shortcut and add "Hello World" to the end of it

double click shortcut

0x616e2069646561206973206c696b652061206d616e20776974686f7574206120626f64792c20746f206669676874206f6e6520697320746f206e657665722077696e2e2e2e2e

Link to comment
Share on other sites

You can only use cmd line arguments on a compiled script.

example:

If $CmdLine[0] > 0 Then
    MsgBox(0,"",$CmdLine[1])
EndIf

Compile this and create a shortcut to it

Right click - propities on the shortcut and add "Hello World" to the end of it

double click shortcut

Thank u for your answer!

This is ok and running. But when it is compiled, i cant debug anymore. The .exe is standalone,

so there is no connection to the Autoit Debugger.

I am trying to debug a script which needs command line arguments to run.

BTW what is this field for in the Autoit Debugger, which is called "command line arguments" (in Autoit Debugger Options)?

Link to comment
Share on other sites

@corgano

The debugger (like Scite via View -> Parameters) should allow you to send command line parameters to the uncompiled script. However this seems to be broken in v0.27.

@mkornuser

Yes, the feature seems to be currently broken, but it should do exactly what you think it should.

@Stumpii

Can you take a look?

Link to comment
Share on other sites

@corgano

The debugger (like Scite via View -> Parameters) should allow you to send command line parameters to the uncompiled script. However this seems to be broken in v0.27.

@mkornuser

Yes, the feature seems to be currently broken, but it should do exactly what you think it should.

@Stumpii

Can you take a look?

Thank You! Where can I get an old Version from?

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