Examining the Content of Variables

feature-request

#1

Is there a way of examining variables while running a script? The only way I can see is to add a task snippet that opens Notepad and writes the contents of the variables to it. As there appears to be no way of cutting and pasting task sequences between scripts (please tell me if this can be done!), one is faced with creating the sequence every time one needs to examine variables - very inelegant!
AJ


#2

My understanding is that the log shows you the variable at the end of the script … so you don’t have intermediate values in case it changes or increments …
Would be nice in fact to have a proper way to inspect variables during execution : I vate for it !


#3

@alan,

Now you can view only final values in the execution result log file

We are planning to add the run-time variable view in our next releases. Please vote for this feature.


#4

I have been using clipboard and batch file (*.bat) to debug the variable.

@ECHO OFF
SET FN=%1
IF ()==(%1) SET FN=D:\CLIP.TXT
:: Open a blank new file
REM New file>%FN%
ECHO.set sh=WScript.CreateObject(“WScript.Shell”)>_TEMP.VBS
ECHO.sh.Run(“Notepad.exe %FN%”)>>_TEMP.VBS
ECHO.WScript.Sleep(200)>>_TEMP.VBS
ECHO.sh.SendKeys("^+{end}^{v}%%{F4}{enter}{enter}")>>_TEMP.VBS
cscript//nologo _TEMP.VBS
ECHO. The clipboard contents are:
TYPE %FN%
:: Clean up
DEL _TEMP.VBS
SET FN=

And I add clipboard action in my sequence checkpoints when I need to check a certain variable’s value, then run the RPA sequence up to the checkpoint and run above bat file, the clipboard content (which is actually the variable’s value) is updated in CLIP.txt file.