|
|
@ -248,8 +248,8 @@ module.exports = class TestTab extends ViewPlugin { |
|
|
|
async startDebug (txHash, web3) { |
|
|
|
async startDebug (txHash, web3) { |
|
|
|
this.isDebugging = true |
|
|
|
this.isDebugging = true |
|
|
|
if (!await this.appManager.isActive('debugger')) await this.appManager.activatePlugin('debugger') |
|
|
|
if (!await this.appManager.isActive('debugger')) await this.appManager.activatePlugin('debugger') |
|
|
|
this.call('menuicons', 'select', 'debugger') |
|
|
|
await this.call('menuicons', 'select', 'debugger') |
|
|
|
this.call('debugger', 'debug', txHash, web3) |
|
|
|
setTimeout(async () => { await this.call('debugger', 'debug', txHash, web3) }, 500) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
printHHLogs (logsArr, testName) { |
|
|
|
printHHLogs (logsArr, testName) { |
|
|
@ -276,7 +276,7 @@ module.exports = class TestTab extends ViewPlugin { |
|
|
|
let debugBtn = yo`` |
|
|
|
let debugBtn = yo`` |
|
|
|
if ((result.type === 'testPass' || result.type === 'testFailure') && result.debugTxHash) { |
|
|
|
if ((result.type === 'testPass' || result.type === 'testFailure') && result.debugTxHash) { |
|
|
|
const { web3, debugTxHash } = result |
|
|
|
const { web3, debugTxHash } = result |
|
|
|
debugBtn = yo`<div id=${result.value.replaceAll(' ', '_')} class="btn border btn btn-sm ml-1" title="Start debugging" onclick=${() => this.startDebug(debugTxHash, web3)}>
|
|
|
|
debugBtn = yo`<div id=${result.value.replaceAll(' ', '_')} class="btn border btn btn-sm ml-1" title="Start debugging" onclick=${async () => this.startDebug(debugTxHash, web3)}>
|
|
|
|
<i class="fas fa-bug"></i> |
|
|
|
<i class="fas fa-bug"></i> |
|
|
|
</div>` |
|
|
|
</div>` |
|
|
|
debugBtn.style.cursor = 'pointer' |
|
|
|
debugBtn.style.cursor = 'pointer' |
|
|
|