Merge pull request #470 from ethereum/fixbreakpoint

add breakpoint even if no compilation data
pull/1/head
chriseth 8 years ago committed by GitHub
commit f1713f2101
  1. 4
      src/app/debugger.js

@ -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) {

Loading…
Cancel
Save