Debugging

Running TryScripts in debugging mode is not directly supported from within Visual Studio .NET. We recommend an approach to enforce debugging through a work-around.

Place a System.Diagnostics.Debug.Assert (false) statement in the constructor of your test driver or at any other position in your code. Compile your code and initiate a TryScript run from Silk Performer. You can also initiate a TryScript run from Visual Studio .NET, however we do not recommend this approach, as a new instance of Microsoft Visual Studio .NET is required for debugging and the new instance will not obtain information regarding it's impact on the instance that is running the TryScript run.

If you subsequently initiate a TryScript run from Silk Performer, a debug assertion dialog box opens, allowing you to debug the code.