From 69135cf74ca5bedbe75ff9aba3883d143f11067e Mon Sep 17 00:00:00 2001 From: melnikga Date: Sun, 28 Apr 2024 19:08:05 +0400 Subject: [PATCH] Update index.tsx --- components/Tracer/index.tsx | 111 +++++++++++++++++++----------------- 1 file changed, 59 insertions(+), 52 deletions(-) diff --git a/components/Tracer/index.tsx b/components/Tracer/index.tsx index faeb2ef..8d1cd7e 100644 --- a/components/Tracer/index.tsx +++ b/components/Tracer/index.tsx @@ -385,60 +385,67 @@ function DebugInfoTab({ - {currentCallstackEntry?.map((callstackEntry, index) => ( - - {debugMode === ProgramDebugMode.Execution && ( - <> - - {callstackEntry.fp} + {currentCallstackEntry?.map((callstackEntry, index) => { + if ( + callstackEntry.fn_name || + debugMode === ProgramDebugMode.Execution + ) { + return ( + + {debugMode === ProgramDebugMode.Execution && ( + <> + + {callstackEntry.fp} + + + {callstackEntry.call_pc} + + + {callstackEntry.ret_pc} + + + )} + + {callstackEntry.fn_name} - - {callstackEntry.call_pc} + + {callstackEntry?.params?.map( + ( + param: { type_name: string; value: number[] }, + index, + array, + ) => ( +
+
+ {param.value.length > 1 + ? `[${param.value.join(', ')}]` + : param.value[0]} + + +
+ + {index < array.length - 1 ? ',\u00A0' : ''} + +
+ ), + )} - - {callstackEntry.ret_pc} - - - )} - - {callstackEntry.fn_name} - - - {callstackEntry?.params?.map( - ( - param: { type_name: string; value: number[] }, - index, - array, - ) => ( -
-
- {param.value.length > 1 - ? `[${param.value.join(', ')}]` - : param.value[0]} - - -
- - {index < array.length - 1 ? ',\u00A0' : ''} - -
- ), - )} - - - ))} + + ) + } + })}