Sign in to follow this  
Followers 0
win2k

Stepping Through Code?

13 posts in this topic

Is there a way in scite to step through each line of code?

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

[sarcasim]SciTe + F5 or Alt+F5 [/sarcasim]:whistle:

Edited by SmOke_N

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

[sarcasim]SciTe + F5 or Alt+F5 [/sarcasim]:whistle:

Funny, now that i read what i wrote i deserve that. I meant more like after one line of code happens the script halts, hit a button it reads the next line of code. I am trying to hook a control and i wanted to see where the cursor ends up at before text goes in it. I mean i could just make a giant comment block for everything after that, but...

Share this post


Link to post
Share on other sites

Funny, now that i read what i wrote i deserve that. I meant more like after one line of code happens the script halts, hit a button it reads the next line of code. I am trying to hook a control and i wanted to see where the cursor ends up at before text goes in it. I mean i could just make a giant comment block for everything after that, but...

Sure, do this

;Code Line 1
Sleep(5000)
;Code Line 2
Sleep(5000)
;Code Line 3
Sleep(5000)
;Code Line 4
Sleep(5000)
;Code Line 5
Sleep(5000)

Share this post


Link to post
Share on other sites

...i wanted to see where the cursor ends up at before text goes in it...

I would put an "exit" right above the code sending the text you mentioned

-or-

slow the script down using AutoItSetOption settings for WinWaitDelay and SendKeyDelay


[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites

he means like an debugger kan step tru the code, nice idea.


*If u thought life couldn't get worse, u meet me *<guy> What would you give my little sister to unzip ?<friend> 10 bucks<guy> No, i mean like Winzip...

Share this post


Link to post
Share on other sites

Yeah thats what i meant zero

Share this post


Link to post
Share on other sites

well there is no buildin compiler option as far as i know

so maby you can post the idea in ideas to together with a option to watch your variables :whistle:


*If u thought life couldn't get worse, u meet me *<guy> What would you give my little sister to unzip ?<friend> 10 bucks<guy> No, i mean like Winzip...

Share this post


Link to post
Share on other sites

it would be very nice if such a thing exist like in the kixtart scripting tool

Share this post


Link to post
Share on other sites

A debugger would be hard to make, because each script needs it's own special way of debugging, and you'll have to make the script know how to edit the code to make like a tooltip ot msgbox catch each variable and display it to use it as a debugger

as far as i know, debuggers are too individual to write a script to automate

Share this post


Link to post
Share on other sites

thats not what i mean.

its another way of compiling.

it compiles the script first

the runs line 1

waits for you to press a button

and goes to the next

and so on

meanwhile you can see the values of all the variables (displays NULL if its not made yet, but is being used in the code)

sort of debug mode.

this would be really handy to find bugs.


*If u thought life couldn't get worse, u meet me *<guy> What would you give my little sister to unzip ?<friend> 10 bucks<guy> No, i mean like Winzip...

Share this post


Link to post
Share on other sites

lol, thanks for the link. i think thats just whats needed XD


*If u thought life couldn't get worse, u meet me *<guy> What would you give my little sister to unzip ?<friend> 10 bucks<guy> No, i mean like Winzip...

Share this post


Link to post
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
Sign in to follow this  
Followers 0