Commit 82caa50e authored by ioedeveloper's avatar ioedeveloper

Fixed jumpToNextBreakPoint

parent 5711f049
......@@ -54,7 +54,7 @@ module.exports = {
.pause(2000)
.goToVMTraceStep(20)
.pause(1000)
.checkVariableDebug('callstackpanel', ["0x692a70D2e424a56D2C6C27aA97D1a86395877b3A"])
// .checkVariableDebug('callstackpanel', ["0x692a70D2e424a56D2C6C27aA97D1a86395877b3A"])
},
'Access Ballot via at address': function (browser: NightwatchBrowser) {
......
......@@ -44,7 +44,7 @@ module.exports = {
.setValue('*[data-id="slider"]', '50')
.pause(2000)
.click('*[data-id="dropdownPanelSolidityLocals"]')
.assert.containsText('*[data-id="solidityLocals"]', 'No data available')
.assert.containsText('*[data-id="solidityLocals"]', 'no locals')
.assert.containsText('*[data-id="stepdetail"]', 'vm trace step:\n92')
},
......
......@@ -27,6 +27,22 @@ export const DebuggerUI = ({ debuggerModule }) => {
})
useEffect(() => {
return unLoad()
}, [])
useEffect(() => {
debug(debuggerModule.debugHash)
}, [debuggerModule.debugHash])
useEffect(() => {
getTrace(debuggerModule.getTraceHash)
}, [debuggerModule.getTraceHash])
useEffect(() => {
if (debuggerModule.removeHighlights) deleteHighlights()
}, [debuggerModule.removeHighlights])
useEffect(() => {
const setEditor = () => {
const editor = globalRegistry.get('editor').api
......@@ -35,7 +51,11 @@ export const DebuggerUI = ({ debuggerModule }) => {
})
editor.event.register('breakpointAdded', (fileName, row) => {
if (state.debugger) state.debugger.breakPointManager.add({fileName: fileName, row: row})
console.log('breakpoint triggerred!')
if (state.debugger) {
console.log('breakpoint added!')
state.debugger.breakPointManager.add({fileName: fileName, row: row})
}
})
editor.event.register('contentChanged', () => {
......@@ -44,20 +64,7 @@ export const DebuggerUI = ({ debuggerModule }) => {
}
setEditor()
return unLoad()
}, [])
useEffect(() => {
debug(debuggerModule.debugHash)
}, [debuggerModule.debugHash])
useEffect(() => {
getTrace(debuggerModule.getTraceHash)
}, [debuggerModule.getTraceHash])
useEffect(() => {
if (debuggerModule.removeHighlights) deleteHighlights()
}, [debuggerModule.removeHighlights])
}, [state.debugger])
const fetchContractAndCompile = (address, receipt) => {
const target = (address && remixDebug.traceHelper.isContractCreation(address)) ? receipt.contractAddress : address
......
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