-
Notifications
You must be signed in to change notification settings - Fork 0
Script Debugging
There are many ways to debug a script, the idea of debugging your script is to use visual cue's alert you to what piece of code is currently being executed.
The multiple ways to use debugging:
F1::
Msgbox, You have pressed the F1 key.
return
F1::
ToolTip
ToolTip, You have pressed the F1 key.
return
F1::
TrayTip
TrayTip, Script Debugging, You have pressed the F1 key, 3 ; TrayTip lasts for 3 seconds.
return
Trial and Error is a very common and effective way of learning. Instead of asking for help on every little thing, sometimes spending some time alone (sometimes hours or days) and trying to get something to work will help you learn faster.
If you try something and it gives you an error, study that error. Then try to fix your code. Then try running it again. If you still get an error, modify your code some more. Keep trying and failing until your code fails no more. You will learn a lot this way by reading the documentation, reading errors and learning what works and what doesn't. Try, fail, try, fail, try, try, try, fail, fail, succeed!
This is how a lot of "pros" have learned. But don't be afraid to ask for help, we don't bite (hard). Learning takes time, the "pros" you encounter did not learn to be masters in just a few hours or days.
"If at first you don't succeed, try, try, try again." - Hickson, William E.