diff --git a/src/app/execution/txLogger.js b/src/app/execution/txLogger.js index 5c1c3cf6b0..c5a2349c3e 100644 --- a/src/app/execution/txLogger.js +++ b/src/app/execution/txLogger.js @@ -168,10 +168,10 @@ class TxLogger { function debug (e, data, self) { e.stopPropagation() - if (data.tx.envMode === 'vm') { - self.event.trigger('debugRequested', [data.tx.hash]) - } else { + if (data.tx.isCall && data.tx.envMode !== 'vm') { modalDialog.alert('Cannot debug this call. Debugging calls is only possible in JavaScript VM mode.') + } else { + self.event.trigger('debugRequested', [data.tx.hash]) } }