Problem debuggin with Arrays

Problem debuggin with Arrays

Postby TampaJim » Sun Jul 19, 2009 7:19 pm

With AutoIt 3.3.0.0 and the Graphical debuger 0.25.0.0 version, I cannot use the debugger if I let it even touch a line that has an Array declared or used. If I put disable/enable comments around those lines I'm ok. This limits me somewhat though, and I have to think it's not supposed to behave that way.

With the simple script...
Code: Select all
Dim $ARR[3]
Dim $tempstr = ""
$ARR[1] = 47
$tempstr = $ARR[1]
MsgBox(0,"Box","$ARR[1] = " & $ARR[1])


I get an error like...
Code: Select all
Line 232 (File "C:\Program Files (x86)\AutoIt3\Examples\Debug\ArrayTest.Debug Script.au3"):

_AU3COM_SendData_SendVariable($VariableName & "[" & $iDimXIndex & "]" & "|" &
AutoIt_Debugger_ReturnVariableValue($VariableName & "[" & $iDimXIndex & "]" & "|" & ^ ERROR

Error: Incorrect number of parameters in function  call.


I've tried it with DIM $ARR[3] = [ 0, 0, 0] as well with no joy. Also with Global instead of DIM
TampaJim
 
Posts: 2
Joined: Sun Jul 19, 2009 7:10 pm

Re: Problem debuggin with Arrays

Postby thefoolonthehill » Mon Jul 20, 2009 8:59 pm

No, it is a bug introduced int he last version.

Unzip the following to the install folder. It should fix the problem. I will include in the version when I get to complete it. Make sure that you change your script (add a space in or something), so the debug file is created again

Steve
Attachments
_AutoIt Debugger Include.zip
(3.43 KiB) Downloaded 56 times
thefoolonthehill
Site Admin
 
Posts: 53
Joined: Thu Dec 18, 2008 3:45 pm

Re: Problem debuggin with Arrays

Postby TampaJim » Mon Jul 20, 2009 11:13 pm

That took care of it, thanks. :)

I did note that comments at the end of lines that interact with Arrays cause a different blow up, but that's obviously not a problem (I can just get rid of the comment or move the comment to a different line if I really need it).

e.g.

Code: Select all
  $i = 1
  $ARR[$i] = -1   ;$ArrInit


I think I saw somewhere else that end-of-line comments with text that could be interpreted as a variable name was a no no, and this is easy enough to avoid, but just in case it was something you were unaware of, I thought I'd mention it.
TampaJim
 
Posts: 2
Joined: Sun Jul 19, 2009 7:10 pm


Return to AutoIt Debugger

Who is online

Users browsing this forum: No registered users and 1 guest

cron