grid view for the debugger

pull/2781/head
yann300 2 years ago committed by Aniket
parent f76755a3fa
commit 639aec2ddc
  1. 2
      libs/remix-ui/app/src/lib/remix-app/components/dragbar/dragbar.tsx
  2. 48
      libs/remix-ui/debugger-ui/src/lib/debugger-ui.tsx

@ -20,7 +20,7 @@ const DragBar = (props: IRemixDragBarUi) => {
useEffect(() => {
setDragBarPosX(offset + (props.hidden ? 0 : props.refObject.current.offsetWidth))
}, [props.hidden, offset])
}, [props.hidden, offset, props.resizeTo])
useEffect(() => {
initialWidth.current = props.refObject.current.clientWidth

@ -282,36 +282,36 @@ export const DebuggerUI = (props: DebuggerUIProps) => {
})
setTimeout(async() => {
try {
debuggerModule.onStartDebugging()
await debuggerInstance.debug(blockNumber, txNumber, tx, () => {
listenToEvents(debuggerInstance, currentReceipt)
try {
await debuggerInstance.debug(blockNumber, txNumber, tx, () => {
listenToEvents(debuggerInstance, currentReceipt)
setState(prevState => {
return {
...prevState,
blockNumber,
txNumber,
debugging: true,
currentReceipt,
currentBlock,
currentTransaction,
debugger: debuggerInstance,
toastMessage: `debugging ${txNumber}`,
validationError: ''
}
})
})
} catch (error) {
unLoad()
setState(prevState => {
return {
...prevState,
blockNumber,
txNumber,
debugging: true,
currentReceipt,
currentBlock,
currentTransaction,
debugger: debuggerInstance,
toastMessage: `debugging ${txNumber}`,
validationError: ''
validationError: error.message || error
}
})
})
} catch (error) {
unLoad()
setState(prevState => {
return {
...prevState,
validationError: error.message || error
}
})
}
}, 300)
handleResize()
}
}, 300)
handleResize()
}
const debug = (txHash, web3?) => {

Loading…
Cancel
Save