Suggest variables that are only enabled during debugging #125
Replies: 3 comments 2 replies
-
EXCELLENT! I would also very much like to be able to access variables from other running scripts. I've used Lexikos' DebugVars in the past to do this, but would be much better if the variables were accessible through your extension while debugging. What do you think? |
Beta Was this translation helpful? Give feedback.
-
OK - thanks for providing your explanations |
Beta Was this translation helpful? Give feedback.
-
Lexikos has said he will consider adding native support to AHK re: ListLines/ListVars/ListHotkeys/KeyHistory so we don't need to use ScriptInfo.ahk if "users [can] prove that the information is actually useful". I've already expressed my desire for him to add such native support in AHK; if you are interested too, please consider adding your comments to the post I've linked above. |
Beta Was this translation helpful? Give feedback.
-
The debugger has the ability to write primitive values, such as strings and numbers, to variables.
Using this feature,
A_DebuggerName
is defined, which is used to determine whether you are debugging or not.Do you have any other suggestions for variables that might be useful for debugging?
Here are my suggestions If you have any suggestions, please comment.
1.
A_AllVarNames
A list of currently available variable names. Depending on the scope, there are
A_AllVarNames
,A_GlobalVarNames
,A_LocalVarNames
, andA_StaticVarNames
(H version only).The value of this variable is a string separated by a new line "`n", like "VarA`nVarB".
This variable can be used to output all the values of currently available variables to the log. This feature may not be used very often, but it may be useful to find the cause of bugs that are hard to reproduce.
Beta Was this translation helpful? Give feedback.
All reactions