Skip to content

Commit

Permalink
Rename var to "yz.debug.debugTraceSteps"
Browse files Browse the repository at this point in the history
  • Loading branch information
yazz committed Dec 27, 2024
1 parent dcffd49 commit 57a9e7a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions public/go.html
Original file line number Diff line number Diff line change
Expand Up @@ -13417,7 +13417,7 @@ <h1 style='width:100%;vertical-align:top;display:inline-block;font-size:100px; t
sourceFileName = sourceForCallerOfFunction.fileName
lineNumber = sourceForCallerOfFunction.lineNumber
}
let steps = yz.debug.steps
let steps = yz.debug.debugTraceSteps
let lastTraceid = null
if (steps && (steps.length > 0)) {
lastTraceid = steps[steps.length - 1]
Expand Down Expand Up @@ -13458,7 +13458,7 @@ <h1 style='width:100%;vertical-align:top;display:inline-block;font-size:100px; t
return ret
},
endOfDebugSection: function ( returnValue ) {
yz.debug.steps.pop()
yz.debug.debugTraceSteps.pop()
return returnValue
},
debugFn: function ( argsPassedIn ) {
Expand Down Expand Up @@ -13489,7 +13489,7 @@ <h1 style='width:100%;vertical-align:top;display:inline-block;font-size:100px; t
const commaSeparatedValues = argsArray.join(', ');

let previousCalls = yz.uiDb.sqlui("select * from ui_table_debug_trace_log where debug_tracer_id == ? order by debug_tick asc" , [yz.debug.debugTracerId])
let callerLogId = yz.debug.steps[yz.debug.steps.length - 1]
let callerLogId = yz.debug.debugTraceSteps[yz.debug.debugTraceSteps.length - 1]
//let closestCallerLogId = previousCalls[0].id
//debugger
let numberLinesToTop = 1000
Expand Down Expand Up @@ -13521,7 +13521,7 @@ <h1 style='width:100%;vertical-align:top;display:inline-block;font-size:100px; t


let latestLogId = yz.uiDb.sqlui1("select MAX(id) as id from ui_table_debug_trace_log")
yz.debug.steps.push(latestLogId.id)
yz.debug.debugTraceSteps.push(latestLogId.id)
}


Expand Down Expand Up @@ -13600,7 +13600,7 @@ <h1 style='width:100%;vertical-align:top;display:inline-block;font-size:100px; t
debugId: debugId
}
yz.debug.debugTracerId = yz.uuidv4()
yz.debug.steps = []
yz.debug.debugTraceSteps = []
yz.debug.debugTick = 1

let sourceForFunction = yz.uiDb.findSourceLineInCode(debugId)
Expand Down Expand Up @@ -13687,7 +13687,7 @@ <h1 style='width:100%;vertical-align:top;display:inline-block;font-size:100px; t
])
}
let latestLogId = yz.uiDb.sqlui1("select MAX(id) as id from ui_table_debug_trace_log")
yz.debug.steps.push(latestLogId.id)
yz.debug.debugTraceSteps.push(latestLogId.id)
},
endDebug: function ( ) {
//----------------------------------------------------------------------------------/
Expand All @@ -13708,15 +13708,15 @@ <h1 style='width:100%;vertical-align:top;display:inline-block;font-size:100px; t
yz.debug.start = null
yz.debug.debugTick = 1
yz.debug.debugTraceid = null
yz.debug.steps = []
yz.debug.debugTraceSteps = []
},

linesOfSourceFile: {}, // the lines of code in go.html and other source files = [line 1, line 2, etc...]
currentDebugId: null, // table "ui_table_debug_trace_log", field "fk_debug_id" = eg: "hjgfsjfgsdhjgfhjfgdjhsfgjfh"
debugTracerId: null, // a UUID which shows which debug trace event we are in ("currentDebugId" is not unique)
currentSqlLogId: null, // ID to use for the SQL log 1..n
debugTick: 1, // 1..n is used to show which step in a trace we are at
steps: []
debugTraceSteps: []
},
uiDb: {
//
Expand Down

0 comments on commit 57a9e7a

Please sign in to comment.