Skip to content

Commit

Permalink
Added "yz.debug.debugTraceStepsV2"
Browse files Browse the repository at this point in the history
  • Loading branch information
yazz committed Jan 10, 2025
1 parent f249bdc commit 4bc28ca
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion public/go.html
Original file line number Diff line number Diff line change
Expand Up @@ -13783,12 +13783,13 @@ <h1 style='width:100%;vertical-align:top;display:inline-block;font-size:100px; t
// insert the trace record
//
let nextId = yz.uiDb.uiDbNextId ++
let dateNow = Date.now()
if (sourceForFunction.found) {
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) VALUES (?,?,?,?,?,?,?,?)",
[
nextId,
debugId,
Date.now(),
dateNow,
yz.debug.debugTracerId,
sourceForFunction.fileName,
//sourceForFunction.lineNumber,
Expand All @@ -13803,6 +13804,18 @@ <h1 style='width:100%;vertical-align:top;display:inline-block;font-size:100px; t
// by just storing the "id" of the record
//
yz.debug.debugTraceSteps.push(nextId)
yz.debug.debugTraceStepsV2.push(
{
id: nextId,
fk_debug_id: debugId,
run_time_millis: dateNow,
debug_tracer_id: yz.debug.debugTracerId,
file_name: sourceForFunction.fileName,
line_number: startLineIndex,
debug_tick: 1,
line_text: sourceForFunction.lineText.trim()
}
)
},
endDebug: function ( ) {
//----------------------------------------------------------------------------------/
Expand Down Expand Up @@ -13989,6 +14002,7 @@ <h1 style='width:100%;vertical-align:top;display:inline-block;font-size:100px; t
debugTracerId: null, // a UUID which shows which debug trace event we are in ("currentDebugId" is not unique)
debugTick: 1, // 1..n is used to show which step in a trace we are at
debugTraceSteps: [], // [1,2,4,8,9] - list of the trace IDs of the current debug log
debugTraceStepsV2: [], // [{db record},{db record}] - list of the trace IDs of the current debug log
currentSqlLogId: null // ID to use for the SQL log 1..n
},
uiDb: {
Expand Down

0 comments on commit 4bc28ca

Please sign in to comment.