@@ -99,7 +99,8 @@ public virtual void IgnoreSoftDebugger (string message = "")
99
99
/// Creates start info to run the app
100
100
/// </summary>
101
101
/// <param name="test">test name</param>
102
- //protected DebuggerStartInfo CreateStartInfo (string test);
102
+ /// <param name="engineId">the ID of debugger engine</param>
103
+ //protected DebuggerStartInfo CreateStartInfo (string test, string engineId);
103
104
104
105
#endregion
105
106
@@ -138,7 +139,7 @@ protected virtual void Start (string test)
138
139
TestName = test ;
139
140
Session = CreateSession ( test , EngineId ) ;
140
141
141
- var dsi = CreateStartInfo ( test ) ;
142
+ var dsi = CreateStartInfo ( test , EngineId ) ;
142
143
var soft = dsi as SoftDebuggerStartInfo ;
143
144
144
145
if ( soft != null ) {
@@ -200,6 +201,7 @@ protected virtual void Start (string test)
200
201
Session . Run ( dsi , ops ) ;
201
202
Session . ExceptionHandler = ( ex ) => {
202
203
Console . WriteLine ( "Session.ExceptionHandler:" + Environment . NewLine + ex . ToString ( ) ) ;
204
+ HandleAnyException ( ex ) ;
203
205
return true ;
204
206
} ;
205
207
switch ( WaitHandle . WaitAny ( new WaitHandle [ ] { done , targetExited } , 30000 ) ) {
@@ -387,6 +389,8 @@ public void AddCatchpoint (string exceptionName, bool includeSubclasses)
387
389
{
388
390
Session . Breakpoints . Add ( new Catchpoint ( exceptionName , includeSubclasses ) ) ;
389
391
}
392
+
393
+ partial void HandleAnyException ( Exception exception ) ;
390
394
}
391
395
392
396
static class EvalHelper
0 commit comments