You can debug your schema customization effort from within IBM® Rational® ClearQuest® using a number of different utilities. One common method is to output text at strategic locations in the code, using MsgBox or OutputDebugString.
This function is available on Windows only.
The MsgBox function lets you place a Windows Message Box on the screen with the output you specify. The execution of the hook pauses until the OK button on the Box is clicked (for example: MsgBox "My Text." ). The message box only displays where the hook is executed.
eval("use Win32; Win32::MsgBox('called from Perl')");
The Windows debugging utility dbwin32.exe is included with Rational ClearQuest for Windows client. It is located in the Rational ClearQuest installation directory. When dbwin32.exe is active, it displays all messages generated by the OutputDebugString method of the Session Object, which you can use to output debugging messages from a hook while it is running. By calling the OutputDebugString method, the related debug statements appear in the DBWin32 console, along with any configured tracing information. Use this method after launching DBWin32 to see messages.
This utility catches some syntax errors.
You can use the Internet Explorer debugger to debug your VBScript hook code. You can download and install this debugger at the following address:
http://msdn.microsoft.com/scripting > Script Debugger
A hook runtime error launches the debugger (if it is not launched, you will need to read the debugger documentation). To force the debugger to be launched, add a stop statement to your VBScript hook code, and the debugger launches at that point.
General debugging of VBScript hooks can be done with the Microsoft VBScript Debugger. If you have Microsoft Visual Studio installed, you can use its VBScript debugger to debug your hook code.