Skip to content

Commit

Permalink
add breakpoint even if no compilation data
Browse files Browse the repository at this point in the history
  • Loading branch information
yann300 committed Mar 16, 2017
1 parent c3f2b56 commit 1250d12
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/app/debugger.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,11 @@ function Debugger (id, appAPI, executionContextEvent, editorEvent) {

var self = this
editorEvent.register('breakpointCleared', (fileName, row) => {
if (self.appAPI.lastCompilationResult().data) {
this.breakPointManager.remove({fileName: fileName, row: row})
}
this.breakPointManager.remove({fileName: fileName, row: row})
})

editorEvent.register('breakpointAdded', (fileName, row) => {
if (self.appAPI.lastCompilationResult().data) {
this.breakPointManager.add({fileName: fileName, row: row})
}
this.breakPointManager.add({fileName: fileName, row: row})
})

executionContextEvent.register('contextChanged', this, function (context) {
Expand Down

0 comments on commit 1250d12

Please sign in to comment.