Skip to content

Commit b8b5ad1

Browse files
created tracing hit action for breakpoints
1 parent ccadee5 commit b8b5ad1

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Mono.Debugging.Soft/SoftDebuggerSession.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2171,6 +2171,10 @@ bool HandleBreakpoint (ThreadMirror thread, EventRequest er)
21712171
return binfo.RunCustomBreakpointAction (bp.CustomActionId);
21722172
}
21732173

2174+
if ((bp.HitAction & HitAction.PrintTrace) != HitAction.None) {
2175+
OnTargetDebug (0, "", "Breakpoint reached: " + binfo.FileName + ":" + binfo.Location.LineNumber + Environment.NewLine);
2176+
}
2177+
21742178
if ((bp.HitAction & HitAction.PrintExpression) != HitAction.None) {
21752179
string exp = EvaluateTrace (thread, bp.TraceExpression);
21762180
binfo.UpdateLastTraceValue (exp);

Mono.Debugging/Mono.Debugging.Client/Breakpoint.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,8 @@ public enum HitAction
194194
None = 0x0,
195195
Break = 0x1,
196196
PrintExpression = 0x2,
197-
CustomAction = 0x4
197+
CustomAction = 0x4,
198+
PrintTrace = 0x8
198199
}
199200

200201
public delegate bool BreakEventHitHandler (string actionId, BreakEvent be);

0 commit comments

Comments
 (0)