01-22-2016 08:26 PM
If you are in debug mode, and while the script is running add a variable to the watch window, the script resumes when you click OK. You can use the code below, place a break on line 9. Then add the variable k to a watch window. Instead of just waiting, the script resumes.
'------------------------------------------------------------------------------- '-- VBS script file '-- Created on 01/22/2016 20:41:19 '-- Author: '-- Comment: '------------------------------------------------------------------------------- Option Explicit 'Forces the explicit declaration of all the variables in a script. Dim i, k i = 5 For k=0 to 1 Msgbox(i+k) Next
Solved! Go to Solution.
01-25-2016 10:33 AM
Hello Russell;
I have just tested in DIAdem 2015 32bit and the problem did not ocurred. Just like you instructed I placed the breakpoint on line 9, start debugging, when the code stopped I entered the variable k in Watch (0) and the script remained paused. I needed to manually resume the script.
Regards;
Pedro M.
01-25-2016 10:42 AM
Thanks for checking, but it's strange, I just tried it again, and it still does it on my machine. This is the version I'm using in diadem:
Diadem: 14.0.0f5641 (32-bit) (my Windows 7 OS is 64-bit)
USI: 14.0.0f5640
DataFinder 14.0.0f5640
Script engine v: 5.5.0.5207
Debbuger v: 6.0.0.8424
Any other suggestions?
01-25-2016 10:59 AM
Hi Russell;
I just tried it on a test machine with DIAdem 2014 SP1 and saw the same behavior as you. I could not find any way to bypass the issue other than to add the variables before start debugging or to update the software to DIAdem 2015 in which the issue was fixed.
Regards,
Pedro M.
01-25-2016 11:01 AM
Thank you! 🙂