Skip to content

Commit 0389107

Browse files
committed
Declarations fix
1 parent 9f55eb5 commit 0389107

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

UnitTests/Mono.Debugging.Tests/Shared/DebugTests.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ public virtual void IgnoreSoftDebugger (string message = "")
9999
/// Creates start info to run the app
100100
/// </summary>
101101
/// <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);
103104

104105
#endregion
105106

@@ -138,7 +139,7 @@ protected virtual void Start (string test)
138139
TestName = test;
139140
Session = CreateSession (test, EngineId);
140141

141-
var dsi = CreateStartInfo (test);
142+
var dsi = CreateStartInfo (test, EngineId);
142143
var soft = dsi as SoftDebuggerStartInfo;
143144

144145
if (soft != null) {
@@ -200,6 +201,7 @@ protected virtual void Start (string test)
200201
Session.Run (dsi, ops);
201202
Session.ExceptionHandler = (ex) => {
202203
Console.WriteLine ("Session.ExceptionHandler:" + Environment.NewLine + ex.ToString ());
204+
HandleAnyException(ex);
203205
return true;
204206
};
205207
switch (WaitHandle.WaitAny (new WaitHandle[]{ done, targetExited }, 30000)) {
@@ -387,6 +389,8 @@ public void AddCatchpoint (string exceptionName, bool includeSubclasses)
387389
{
388390
Session.Breakpoints.Add (new Catchpoint (exceptionName, includeSubclasses));
389391
}
392+
393+
partial void HandleAnyException(Exception exception);
390394
}
391395

392396
static class EvalHelper

UnitTests/Mono.Debugging.Tests/Shared/TextFile.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,12 @@ public partial class TextFile
6868
// }
6969

7070
/// <summary>
71-
/// Returns the text starting from <paramref name="offset"/> with length=<paramref name="length"/>
71+
/// Returns the text starting from <paramref name="startOffset"/> with length=<paramref name="endOffset"/>
7272
/// </summary>
73-
/// <param name="offset">0-based starting offset</param>
74-
/// <param name="length">length of text</param>
73+
/// <param name="startOffset">0-based starting offset</param>
74+
/// <param name="endOffset">0-based end offset</param>
7575
/// <returns></returns>
76-
// public string GetText (int offset, int length)
76+
// public string GetText(int startOffset, int endOffset)
7777
// {
7878
// }
7979

0 commit comments

Comments
 (0)