SilkTest Workbench: Why am I unable to debug .Net scripts immediately after runtime error?
If a run-time error occurs during playback of a Workbench .Net Script and assuming you have not defined an error handler in your script, the test will be terminated and the following error dialog will be displayed:
If you click 'Debug' on this dialog, the script will be opened and the code that threw the error will be highlighted as shown in the following screenshot:
Although it may appear that Debug mode has been entered, it will not be possible to use any debugging functions such as 'Step Into', 'Run to Cursor' or 'Set Run Pointer/Next Statement'. Any action that you take at this point will result in the immediate termination of the .Net script.
This is the expected behavior when running Workbench .Net Script, as unlike Visual Basic it is not possible to continue debugging a .Net script immediately after a run-time error. You therefore have to stop the script before you can enter debugging mode proper, at which time all of relevant functions should be available.