Skip to content

Commit

Permalink
populate the new trace list (V2)
Browse files Browse the repository at this point in the history
  • Loading branch information
yazz committed Jan 10, 2025
1 parent 4bc28ca commit d9b1849
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion public/go.html
Original file line number Diff line number Diff line change
Expand Up @@ -13591,13 +13591,14 @@ <h1 style='width:100%;vertical-align:top;display:inline-block;font-size:100px; t
}*/

let nextId = yz.uiDb.uiDbNextId ++
let dateNow = Date.now()
yz.uiDb.sqlui("INSERT INTO ui_table_debug_trace_log ( id , fk_debug_id , run_time_millis , debug_tracer_id ," +
" file_name , line_number, debug_tick ,line_text,arguments, caller_file_name , caller_line_number , " +
"fk_caller_debug_trace_log_id ) VALUES (?,?,?,?,?,?,?,?,?,?,?,?)",
[
nextId,
yz.debug.currentDebugId,
Date.now(),
dateNow,
yz.debug.debugTracerId,
sourceForFunction.fileName,
sourceForFunction.lineNumber,
Expand All @@ -13611,6 +13612,23 @@ <h1 style='width:100%;vertical-align:top;display:inline-block;font-size:100px; t


yz.debug.debugTraceSteps.push(nextId)
yz.debug.debugTraceStepsV2.push(
{
id: nextId,
fk_debug_id: yz.debug.currentDebugId,
run_time_millis: dateNow,
debug_tracer_id: yz.debug.debugTracerId,
file_name: sourceForFunction.fileName,
line_number: sourceForFunction.lineNumber,
debug_tick: yz.debug.debugTick,
line_text: sourceForFunction.lineText.trim(),
arguments: JSON.stringify(argsArray,null,2),
caller_file_name: sourceForCallerOfFunction.fileName,
caller_line_number: sourceForCallerOfFunction.lineNumber,
fk_caller_debug_trace_log_id: callerLogId
}
)

}


Expand Down

0 comments on commit d9b1849

Please sign in to comment.