Commit f1713f21 authored by chriseth's avatar chriseth Committed by GitHub

Merge pull request #470 from ethereum/fixbreakpoint

add breakpoint even if no compilation data
parents c3f2b56c 1250d12e
...@@ -22,15 +22,11 @@ function Debugger (id, appAPI, executionContextEvent, editorEvent) { ...@@ -22,15 +22,11 @@ function Debugger (id, appAPI, executionContextEvent, editorEvent) {
var self = this var self = this
editorEvent.register('breakpointCleared', (fileName, row) => { 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) => { 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) { executionContextEvent.register('contextChanged', this, function (context) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment