Skip to content

Commit c3725db

Browse files
author
David Karlaš
authored
Merge pull request #90 from JetBrains/hitActions
created tracing hit action for breakpoints
2 parents e937d48 + b8b5ad1 commit c3725db

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
@@ -2177,6 +2177,10 @@ bool HandleBreakpoint (ThreadMirror thread, EventRequest er)
21772177
return binfo.RunCustomBreakpointAction (bp.CustomActionId);
21782178
}
21792179

2180+
if ((bp.HitAction & HitAction.PrintTrace) != HitAction.None) {
2181+
OnTargetDebug (0, "", "Breakpoint reached: " + binfo.FileName + ":" + binfo.Location.LineNumber + Environment.NewLine);
2182+
}
2183+
21802184
if ((bp.HitAction & HitAction.PrintExpression) != HitAction.None) {
21812185
string exp = EvaluateTrace (thread, bp.TraceExpression);
21822186
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)