fix debugger

pull/2035/head
filip mertens 3 years ago
parent 7dee1a02e6
commit 8a7ab3f08e
  1. 2
      apps/remix-ide-e2e/src/tests/solidityUnittests.test.ts
  2. 2
      libs/remix-ui/debugger-ui/src/lib/debugger-ui.tsx

@ -263,7 +263,7 @@ module.exports = {
.removeFile('tests/ballotFailedLog_test.sol', 'workspace_new') .removeFile('tests/ballotFailedLog_test.sol', 'workspace_new')
}, },
'Debug tests using debugger #group5': function (browser: NightwatchBrowser) { 'Debug tests using debugger #group7': function (browser: NightwatchBrowser) {
browser browser
.waitForElementPresent('*[data-id="verticalIconsKindfilePanel"]') .waitForElementPresent('*[data-id="verticalIconsKindfilePanel"]')
.addFile('tests/ballotFailedDebug_test.sol', sources[0]['tests/ballotFailedDebug_test.sol']) .addFile('tests/ballotFailedDebug_test.sol', sources[0]['tests/ballotFailedDebug_test.sol'])

@ -230,6 +230,7 @@ export const DebuggerUI = (props: DebuggerUIProps) => {
debugWithGeneratedSources: state.opt.debugWithGeneratedSources debugWithGeneratedSources: state.opt.debugWithGeneratedSources
}) })
setTimeout(async() => {
try { try {
await debuggerInstance.debug(blockNumber, txNumber, tx, () => { await debuggerInstance.debug(blockNumber, txNumber, tx, () => {
listenToEvents(debuggerInstance, currentReceipt) listenToEvents(debuggerInstance, currentReceipt)
@ -257,6 +258,7 @@ export const DebuggerUI = (props: DebuggerUIProps) => {
} }
}) })
} }
}, 300)
} }
const debug = (txHash, web3?) => { const debug = (txHash, web3?) => {

Loading…
Cancel
Save