Skip to content

Commit

Permalink
Adding missing methods due to rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrlpz committed Nov 24, 2016
1 parent aa5f5d3 commit 4bd7fb0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/tools/debugger/FrontendConnector.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
import tools.debugger.message.StackTraceResponse;
import tools.debugger.message.StoppedMessage;
import tools.debugger.message.SuspendedEventMessage;
import tools.debugger.message.VariablesResponse;
import tools.debugger.session.AsyncMessageReceiverBreakpoint;
import tools.debugger.session.Breakpoints;
import tools.debugger.session.LineBreakpoint;
Expand Down Expand Up @@ -342,6 +343,15 @@ public void registerOrUpdate(final PromiseResolverBreakpoint bp) {
breakpoints.addOrUpdate(bp);
}

public Suspension getSuspension(final int activityId) {
return webDebugger.getSuspension(activityId);
}

public Suspension getSuspension(final String suspendedEventId) {
int activityId = Integer.valueOf(suspendedEventId.substring(SUSPENDED_EVENT_ID_PREFIX.length()));
return webDebugger.getSuspension(activityId);
}

public Suspension getSuspensionForGlobalId(final int globalId) {
return webDebugger.getSuspension(Suspension.getActivityIdFromGlobalId(globalId));
}
Expand Down

0 comments on commit 4bd7fb0

Please sign in to comment.