diff --git a/components/Editor/Console.tsx b/components/Editor/Console.tsx index 5c73ab7..051d97d 100644 --- a/components/Editor/Console.tsx +++ b/components/Editor/Console.tsx @@ -20,8 +20,11 @@ const Console = () => { return (
{log.type === LogType.Error && ( diff --git a/components/Editor/EditorFooter.tsx b/components/Editor/EditorFooter.tsx index 2901109..96b3cb4 100644 --- a/components/Editor/EditorFooter.tsx +++ b/components/Editor/EditorFooter.tsx @@ -15,7 +15,7 @@ function EditorFooter() { return (diff --git a/components/Editor/ExtraColumn.tsx b/components/Editor/ExtraColumn.tsx index f36a355..e614e04 100644 --- a/components/Editor/ExtraColumn.tsx +++ b/components/Editor/ExtraColumn.tsx @@ -38,7 +38,7 @@ const ExtraColumn = ({ } = useContext(CairoVMApiContext) return ( -+{ > -- - {isThreeColumnLayout && ( --+setCodeType(value)} - withLogo={isFullScreen} - /> - +- -++ + {isThreeColumnLayout && ( ++-setCodeType(value)} + withLogo={isFullScreen} + /> + - {codeType === CodeType.CASM ? ( -+ +- ) : codeType === CodeType.Sierra ? ( - + {codeType === CodeType.CASM ? ( + + ) : codeType === CodeType.Sierra ? ( + + ) : ( + ++ )} ++ setShowArgumentsHelper(true)} + handleChangeExampleOption={(newExample) => + newExample !== null + ? setExampleOption(newExample.value) + : setExampleOption(0) } - variables={currentSierraVariables || {}} /> - ) : ( - -+- )} setShowArgumentsHelper(true)} - handleChangeExampleOption={(newExample) => - newExample !== null - ? setExampleOption(newExample.value) - : setExampleOption(0) - } - /> + ++ - )} - { const { executionState, @@ -84,10 +69,6 @@ export const Tracer = () => { : null const currentCallstackEntry = tracerData?.callstack[executionTraceStepNumber] - const [selectedConsoleTab, setSelectedConsoleTab] = useState( - IConsoleTab.Console, - ) - const [currentFocus, setCurrentFocus] = useReducer( (state: any, newIdx: number) => { state = { @@ -154,35 +135,6 @@ export const Tracer = () => { } } - const actions = [ - { - id: 'debugInfo', - name: 'Debug Info', - shortcut: ['d'], - keywords: 'Debug info', - section: 'Execution', - perform: () => { - setSelectedConsoleTab(IConsoleTab.DebugInfo) - }, - subtitle: 'Switch to Debug Info', - priority: Priority.HIGH, - }, - { - id: 'console', - name: 'Console', - shortcut: ['e'], - keywords: 'Console', - section: 'Execution', - perform: () => { - setSelectedConsoleTab(IConsoleTab.Console) - }, - subtitle: 'Switch to Console', - priority: Priority.HIGH, - }, - ] - - useRegisterActions(actions, [setSelectedConsoleTab]) - return ( <> @@ -216,49 +168,15 @@ export const Tracer = () => {)} --- --- {selectedConsoleTab === IConsoleTab.Console &&} - - {selectedConsoleTab === IConsoleTab.DebugInfo && ( - - )} + +> @@ -279,7 +197,7 @@ function DebugInfoTab({ handleRegisterPointerClick: (num: number) => void }) { return ( -+ +{trace === undefined ? (Run the app to get debug info @@ -337,7 +255,7 @@ function DebugInfoTab({
-
+ FP CALL PC RET PC