Author Topic: VB Script debug output window  (Read 4622 times)

Jayson

  • EA User
  • **
  • Posts: 363
  • Karma: +1/-0
    • View Profile
VB Script debug output window
« on: August 06, 2014, 12:18:44 pm »
Greetings all
  
I have progressed onto writing VB Script to manipulate the EA repository.
So far it has been pretty easy due mainly to Qwerty's great book which I thoroughly recommend to beginners.
 
One thing that I have not been able to figure out is how to display the debug output window.
 
So far, I have been tracking the progress of my scripts by using msgBox to pop up a dialog box containing a string.
  
Of course, this is a sucky way to track the progress of your script when compared to writing directly to the debug output window using Debug.Write.
  
However, I can't seem to display the debug output window in order to see the text I am writing out.
  
I am using version 9.3.
  
Can anyone point me in the right direction to display the window?
  
Cheers
  
Jays :)

Aaron B

  • EA Administrator
  • EA User
  • *****
  • Posts: 941
  • Karma: +18/-0
    • View Profile
Re: VB Script debug output window
« Reply #1 on: August 06, 2014, 12:37:15 pm »
Hello Jays,

AFAIK - I don't think Debug.Write is captured anywhere.  Try using Session.Output instead.  When running your VBScript in EA, the default output location is the "Script" tab of the System Output window (View | System Output | Script).

You can show this window from your script by calling EnsureOutputVisible.  For Example:

Code: [Select]
Session.Output "Hello World!"
Repository.EnsureOutputVisible "Script"
« Last Edit: August 06, 2014, 12:39:02 pm by AaronB »

Jayson

  • EA User
  • **
  • Posts: 363
  • Karma: +1/-0
    • View Profile
Re: VB Script debug output window
« Reply #2 on: August 06, 2014, 12:56:50 pm »
Fantabulous!
Thanks so much for that. It will make scripting waaay easier.

I've called beer o clock already, but will give it a shot tomorrow.

Cheers  :)