Skip to content

Commit

Permalink
yz.debug.internal.getFnNameFromLine(
Browse files Browse the repository at this point in the history
  • Loading branch information
yazz committed Jan 9, 2025
1 parent b6c47a2 commit 9dc271f
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions public/go.html
Original file line number Diff line number Diff line change
Expand Up @@ -13722,7 +13722,7 @@ <h1 style='width:100%;vertical-align:top;display:inline-block;font-size:100px; t
if (lengthOfRestOfLine < 5) {
startLineIndex = sourceForFunction.lineNumber - 1
let previousLine = yz.debug.linesOfSourceFile[sourceForFunction.fileName][startLineIndex - 1]
let fnName = yz.uiDb.getFnNameFromLine( previousLine )
let fnName = yz.debug.internal.getFnNameFromLine( previousLine )
let allText = ""
let readAnotherLine = true
let nextLine
Expand Down Expand Up @@ -13989,6 +13989,17 @@ <h1 style='width:100%;vertical-align:top;display:inline-block;font-size:100px; t
let fnNameString = fnStartString.substring(0,indexEndFn)
return fnNameString
},
getFnNameFromLine: function ( fnLine ) {
//'at Proxy.installAppNow (eval at addRuntimePipelinesAndRunCode (http://192.168.1.171/app/appstore.html:1070:36), <anonymous>:158:29)'
let indexColon = fnLine.indexOf(":")
if (indexColon == -1) {
return null
}

let fnUptoColon = fnLine.substring(0,indexColon)
let trimmed = fnUptoColon.trim()
return trimmed
},
},

linesOfSourceFile: {}, // the lines of code in go.html and other source files = [line 1, line 2, etc...]
Expand Down Expand Up @@ -14251,17 +14262,6 @@ <h1 style='width:100%;vertical-align:top;display:inline-block;font-size:100px; t
await yz.debug.internal.readSourceFileForDebugging("/public/go.html")
await yz.debug.internal.readSourceFileForDebugging("/public/visifile_drivers/apps/appstore.vjs")
},
getFnNameFromLine: function ( fnLine ) {
//'at Proxy.installAppNow (eval at addRuntimePipelinesAndRunCode (http://192.168.1.171/app/appstore.html:1070:36), <anonymous>:158:29)'
let indexColon = fnLine.indexOf(":")
if (indexColon == -1) {
return null
}

let fnUptoColon = fnLine.substring(0,indexColon)
let trimmed = fnUptoColon.trim()
return trimmed
},
createAlaSqlTable: async function ( { tableName , fields , sendToDebugSqliteServer } ) {
if (typeof(sendToDebugSqliteServer) !== 'undefined') {
yz.uiDb.sendToServerDebugSqliteLookup[tableName] = sendToDebugSqliteServer
Expand Down

0 comments on commit 9dc271f

Please sign in to comment.