Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions lib/debugger-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export default class DebuggerController {
'debugger:pause': () => { this.pause() },
'debugger:step-into': () => { this.stepInto() },
'debugger:step-over': () => { this.stepOver() },
'debugger:step-out': () => { this.stepOut() },
'debugger:toggle-breakpoint-at-current-line': () => { this.toggleBreakpoint() }
})
}
Expand Down Expand Up @@ -110,6 +111,10 @@ export default class DebuggerController {
this.debuggerRegistry.getDebuggerProxy().stepOver()
}

stepOut(): void {
this.debuggerRegistry.getDebuggerProxy().stepOut()
}

toggleBreakpoint(): void {
const activeEditor = atom.workspace.getActiveTextEditor()

Expand Down
9 changes: 9 additions & 0 deletions lib/debugger-proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,15 @@ export default class DebuggerProxy {
}
}

stepOut(): void {

let debug = this.getActiveDebugger()

if (debug) {
debug.stepOut()
}
}

getCallStack(): Promise<Array<StackFrame>> {

let debug = this.getActiveDebugger()
Expand Down
2 changes: 2 additions & 0 deletions lib/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ export type Debugger = {

stepOver(): void,

stepOut(): void,

insertBreakpoint(breakpoint: Breakpoint): void,

getCallStack(): Promise<Array<StackFrame>>,
Expand Down