Sparx Systems Forum
Enterprise Architect => General Board => Topic started by: Jayson 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 :)
-
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:
Session.Output "Hello World!"
Repository.EnsureOutputVisible "Script"
-
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 :)