Jump to content



Photo

Graphical AutoIt Debugger


  • Please log in to reply
395 replies to this topic

#61 IcyFerno

IcyFerno

    Adventurer

  • Active Members
  • PipPip
  • 146 posts

Posted 11 November 2006 - 09:45 AM

lol this is one i would really like to test
Posted Image





#62 A. Percy

A. Percy

    VW Sedan user

  • Active Members
  • PipPipPipPipPipPip
  • 561 posts

Posted 13 November 2006 - 07:58 PM

Very nice this tool, but I found a bug. Try this code:

Func BugFunc( $Parameter = @ScriptDir )     Return 1 EndFunc BugFunc( )


Thanks :whistle:
Só o que posso lhe dizer, bom é quando faz mal!My work:Au3Irrlicht - Irrlicht for AutoItMsAgentLib - An UDF for MSAgentAu3GlPlugin T2 - A 3D plugin for AutoIt...OpenGl Plugin - The old version of Au3GlPlugin.MAC Address Changer - Changes the MAC AddressItCopter - A dragonfly R/C helicopter simulator

Posted Image VW Bug userPosted Image

Pinheiral (Pinewood) city: http://pt.wikipedia.org/wiki/Pinheiral

#63 Stumpii

Stumpii

    Mr. Stumpii

  • Active Members
  • PipPipPipPipPipPip
  • 465 posts

Posted 14 November 2006 - 02:31 AM

Very nice this tool, but I found a bug. Try this code:

Func BugFunc( $Parameter = @ScriptDir )     Return 1 EndFunc BugFunc( )


Thanks :whistle:

That is unfortunate, but understandable.

Because the program does not modify the original script and the debug script can run from the Windows Temp directory, when the debug script is created, @ScriptDir and other script name/folder macros are replaced with variable holding the value that the original script would have. This allows the debug script to run as if it were the original script.

The line 'Func BugFunc( $Parameter = @ScriptDir )' is converted to 'Func BugFunc( $Parameter = $ScriptDir )' or similar which is illegal and generates the error.

I don't see an easy way around this, so my only suggestion is that you try remove the @... macro from the function. Not ideal, but it should work.
“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.

#64 Stumpii

Stumpii

    Mr. Stumpii

  • Active Members
  • PipPipPipPipPipPip
  • 465 posts

Posted 16 November 2006 - 02:10 AM

I have placed a new version (v0.9.0) of the AutoIt Debugger on my site (refer to post #1).

New features include:

1. Removed the wrapper dll, so the program starts quicker and runs a little faster.
3. Added menu and toolbar command 'Restart Debug File' which will close the current debugger and run the program again from the start. This is useful when you have gone past a part of the and want to start again.
4. Added menu and toolbar command 'Compile & Restart Debug File' which will close the current debugger, regenerate the debug script file and run the program from the start. This is useful when you have found an error in the original code, fixed it and want to test the change.
5. Debug script creator program now appears centre screen, not off to the side.
6. Added new code window with basic syntax highlighting.
“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.

#65 Thatsgreat2345

Thatsgreat2345

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 2,640 posts

Posted 16 November 2006 - 03:31 AM

I have placed a new version (v0.9.0) of the AutoIt Debugger on my site (refer to post #1).

New features include:

1. Removed the wrapper dll, so the program starts quicker and runs a little faster.
3. Added menu and toolbar command 'Restart Debug File' which will close the current debugger and run the program again from the start. This is useful when you have gone past a part of the and want to start again.
4. Added menu and toolbar command 'Compile & Restart Debug File' which will close the current debugger, regenerate the debug script file and run the program from the start. This is useful when you have found an error in the original code, fixed it and want to test the change.
5. Debug script creator program now appears centre screen, not off to the side.
6. Added new code window with basic syntax highlighting.


never knew it went 1 , 3 , 4 :whistle:

#66 gcriaco

gcriaco

    Polymath

  • Active Members
  • PipPipPipPip
  • 205 posts

Posted 16 November 2006 - 01:36 PM

I get the following error with v. 0.90:

Line 0 (File "C:\programmi\Autoit Debugger\AutoIt Debugger.exe"

$includeFile = $aIncludeRegEx[0]
$includeFile = $aIncludeRegEx^ ERROR

Error: Subscript used with non-Array variable.


Please let me know if I can provide further details.

#67 Stumpii

Stumpii

    Mr. Stumpii

  • Active Members
  • PipPipPipPipPipPip
  • 465 posts

Posted 16 November 2006 - 06:14 PM

I get the following error with v. 0.90:

Line 0 (File "C:\programmi\Autoit Debugger\AutoIt Debugger.exe"

$includeFile = $aIncludeRegEx[0]
$includeFile = $aIncludeRegEx^ ERROR

Error: Subscript used with non-Array variable.
Please let me know if I can provide further details.

That bit of the code is related to extracting #include files for processing. I have tried debugging files with and without #includes and I cannot generate the error.

Could you answer the following questions to help me narrow down where the problem is
1. Have you tried debugging the 'Test Script.au3' file located in the install folder. If not, try it and see if you get an error.
2. Have you manually recompiled the file 'AutoIt Debugger.exe'? If so, what version of AutoIt are you using?
3. Are you using #includes in your program?
4. Can you post the #include parts of you program so I can see if you are doing anything strange.

Thanks!
“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.

#68 gcriaco

gcriaco

    Polymath

  • Active Members
  • PipPipPipPip
  • 205 posts

Posted 17 November 2006 - 09:10 AM

That bit of the code is related to extracting #include files for processing. I have tried debugging files with and without #includes and I cannot generate the error.

Could you answer the following questions to help me narrow down where the problem is
1. Have you tried debugging the 'Test Script.au3' file located in the install folder. If not, try it and see if you get an error.
2. Have you manually recompiled the file 'AutoIt Debugger.exe'? If so, what version of AutoIt are you using?
3. Are you using #includes in your program?
4. Can you post the #include parts of you program so I can see if you are doing anything strange.

Thanks!


1. debug of 'Test Script.au3' is OK.
2. No recompilation of the file 'AutoIt Debugger.exe'. BTW, I use the latest beta.
3. I use the following #include in my program:
#include <WindowsConstants.au3>
#include <GUIConstants.au3>
#Include <GuiStatusBar.au3>
#Include <GuiListView.au3>
#include <GuiTreeView.au3>
#include <Misc.au3>
#include <Array.au3>
#include <file.au3>
#include <Date.au3>
#Include <sqlite.au3>
#Include <SQLite.dll.au3>
#include "Include\DirWalk.au3"
#include "Include\GuiHyperLink.au3"
#include "Include\GuiToolbar.au3"
#include "Include\Events.au3"
Note that the last 4 point to a subdir. I don't want to move them to the AutoIt Includes dir because they are personalized for my program.
4. Not enough free space for attachments. Send me a PM or email with your email address and I'll send you the program source code and Includes.

#69 Angelia

Angelia

    Seeker

  • Active Members
  • 19 posts

Posted 21 November 2006 - 02:51 PM

I think I will enjoy this. Thanks!
~A~ ;)

#70 Stumpii

Stumpii

    Mr. Stumpii

  • Active Members
  • PipPipPipPipPipPip
  • 465 posts

Posted 08 December 2006 - 11:46 PM

New version (v0.10.0) is available on the web site (refer to first post).

Changes:
1. Added debug enable/disable feature. Adding the line ';AutoIt_Debugger_Command:Disable_Debug' to disable debugging and the line ';AutoIt_Debugger_Command:Enable_Debug' to re-enable debugging. This is useful when debugging large files.
2. Fixed problem converting #Include files when used within #Include files. @gcriaco, this fixes the problem that you are experiencing.
“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.

#71 DaleHohm

DaleHohm

    Think of IE as an API...

  • MVPs
  • 5,886 posts

Posted 09 December 2006 - 12:23 AM

Has this been discussed before? If so, my apologies.

I installed for the first time and tried to open a bunch of scripts that started with "#include <IE.au3>", indeed I tried to open a file that had that single line and in each case got a popup with the following:

Line 0  (File "C:\Program Files\AutoIt3\AutoIt Debugger\AutoIt Debugger.exe"): If (Not $bSkipLine) And (Not $bSkipBlock) And (Not $bUserSkipBlock) Then If (Not $bSkipLine) And (Not $bSkipBlock) And (Not ^ ERROR Error: Variable used without being declared.


Dale
IE.au3 issues with Vista - Workarounds, Automate input type=file (Related)SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=YFree Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curlMSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model,Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbeddedFind and harvest Enum constants for COM codeAutoIt Snippets Database - you too can contribute!Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your troubleDoesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

#72 GaryFrost

GaryFrost

    I don't need your attitude. I have one of my own

  • Developers
  • 7,854 posts

Posted 09 December 2006 - 12:51 AM

Has this been discussed before? If so, my apologies.

I installed for the first time and tried to open a bunch of scripts that started with "#include <IE.au3>", indeed I tried to open a file that had that single line and in each case got a popup with the following:

Line 0  (File "C:\Program Files\AutoIt3\AutoIt Debugger\AutoIt Debugger.exe"): If (Not $bSkipLine) And (Not $bSkipBlock) And (Not $bUserSkipBlock) Then If (Not $bSkipLine) And (Not $bSkipBlock) And (Not ^ ERROR Error: Variable used without being declared.


Dale

I get the same error with a simple test script of my own.

SciTE for AutoItDirections for Submitting Standard UDFs

Don't argue with an idiot; people watching may not be able to tell the difference.


#73 Stumpii

Stumpii

    Mr. Stumpii

  • Active Members
  • PipPipPipPipPipPip
  • 465 posts

Posted 09 December 2006 - 06:45 PM

Has this been discussed before? If so, my apologies.

I installed for the first time and tried to open a bunch of scripts that started with "#include <IE.au3>", indeed I tried to open a file that had that single line and in each case got a popup with the following:

Line 0  (File "C:\Program Files\AutoIt3\AutoIt Debugger\AutoIt Debugger.exe"): If (Not $bSkipLine) And (Not $bSkipBlock) And (Not $bUserSkipBlock) Then If (Not $bSkipLine) And (Not $bSkipBlock) And (Not ^ ERROR Error: Variable used without being declared.


Dale

Oops. Have fixed the bug and uploaded a new version (v0.10.1). Link in the first post again.

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

#74 blahblahblah5038

blahblahblah5038

    Seeker

  • Active Members
  • 31 posts

Posted 28 April 2007 - 03:09 AM

This looks awesome! Thanks!
Noteworthy works:Fast Pixel SearchSigned: WG

#75 Shaba1

Shaba1

    Seeker

  • New Members
  • 7 posts

Posted 28 April 2007 - 04:41 PM

I have installed this on my work desktop and my home desktop without problems. But when I tried to install it on my laptop I got the following error dialog when I tried the test.au3 file in the debugger directory.

Posted Image

any ideas?

#76 thenewkid

thenewkid

    Polymath

  • Active Members
  • PipPipPipPip
  • 226 posts

Posted 28 April 2007 - 05:16 PM

this is a lot like microsoft Visual Studio but with less buttons

but its good :)

Edited by thenewkid, 28 April 2007 - 05:17 PM.

some of my scripts check them out and give feedback so i can learn from them :)autoclicker a autoclickernote taker a script to take notes with

#77 Stumpii

Stumpii

    Mr. Stumpii

  • Active Members
  • PipPipPipPipPipPip
  • 465 posts

Posted 28 April 2007 - 05:53 PM

I have installed this on my work desktop and my home desktop without problems. But when I tried to install it on my laptop I got the following error dialog when I tried the test.au3 file in the debugger directory.

Posted Image

any ideas?



Do you have the latest version? I fixed that bug a while ago, so you should not see it in the current version.

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.

#78 Shaba1

Shaba1

    Seeker

  • New Members
  • 7 posts

Posted 29 April 2007 - 04:21 PM

Do you have the latest version? I fixed that bug a while ago, so you should not see it in the current version.

Stumpii


Lastest version of which program? autoit or the autoitdebugger. I *think* I have the most recent version of both. In in anycase I installed on my work and home desktop and on my laptop from the same files. Why would it work on two machines and not on the laptop. I am checking right now t and going to download both the most recent versions of scite,autoit and the autoit debugger just to insure that they are all the most recent. I really do think that they are.

#79 Stumpii

Stumpii

    Mr. Stumpii

  • Active Members
  • PipPipPipPipPipPip
  • 465 posts

Posted 29 April 2007 - 07:24 PM

Lastest version of which program? autoit or the autoitdebugger. I *think* I have the most recent version of both. In in anycase I installed on my work and home desktop and on my laptop from the same files. Why would it work on two machines and not on the laptop. I am checking right now t and going to download both the most recent versions of scite,autoit and the autoit debugger just to insure that they are all the most recent. I really do think that they are.


The newest version of the debugger has been setup to run the program associated with the 'Run' command for .au3 files. The old version ran the 'autoit3.exe' program in the beta folder. If you did not have the beta installed, you would get that error. Do you have problems running scripts when right clicking an au3 file and clicking 'Run'?
“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.

#80 Shaba1

Shaba1

    Seeker

  • New Members
  • 7 posts

Posted 30 April 2007 - 01:14 AM

The newest version of the debugger has been setup to run the program associated with the 'Run' command for .au3 files. The old version ran the 'autoit3.exe' program in the beta folder. If you did not have the beta installed, you would get that error. Do you have problems running scripts when right clicking an au3 file and clicking 'Run'?


ok my fault Stumpii. I must have copied and old version from my flash drive to this laptop. I just downloaed and installed the version from the web site and did not ge the error
sorry for bothering you




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users