Skip to content

Commit

Permalink
Mark the end of a debug section
Browse files Browse the repository at this point in the history
  • Loading branch information
yazz committed Dec 9, 2024
1 parent 2f98374 commit 0708b3f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
28 changes: 14 additions & 14 deletions public/go.html
Original file line number Diff line number Diff line change
Expand Up @@ -9706,7 +9706,7 @@
nextLine = yz.uiDb.linesOfSourceFile[ mm.selectedLogItemFileName][mm.selectedLogItemContextEndLineNumber - 1]
if (mm.selectedLogItemContextEndLineNumber == yz.uiDb.linesOfSourceFile[ mm.selectedLogItemFileName].length) {
readAnotherLine = false
} else if (nextLine.indexOf("yz.uiDb.endDebugFn(") != -1) {
} else if (nextLine.indexOf("yz.uiDb.endOfDebugSection(") != -1) {
mm.selectedLogItemContextEndLineNumber ++
readAnotherLine = false
} else {
Expand Down Expand Up @@ -9934,7 +9934,7 @@
nextLine = yz.uiDb.linesOfSourceFile[ mm.selectedLogItemFileName][mm.selectedLogItemContextEndLineNumber - 1]
if (mm.selectedLogItemContextEndLineNumber == yz.uiDb.linesOfSourceFile[ mm.selectedLogItemFileName].length) {
readAnotherLine = false
} else if (nextLine.indexOf("yz.uiDb.endDebugFn(") != -1) {
} else if (nextLine.indexOf("yz.uiDb.endOfDebugSection(") != -1) {
mm.selectedLogItemContextEndLineNumber ++
readAnotherLine = false
} else {
Expand Down Expand Up @@ -11430,7 +11430,7 @@ <h1 style='width:100%;vertical-align:top;display:inline-block;font-size:100px; t
console.log("Global var 'show_running_apps' changed : " + JSON.stringify(nv))
mm.refresh ++
})
yz.uiDb.endDebugFn()
yz.uiDb.endOfDebugSection()
},

// local filesystem stuff
Expand Down Expand Up @@ -11765,7 +11765,7 @@ <h1 style='width:100%;vertical-align:top;display:inline-block;font-size:100px; t
await yz.addInstalledApp("uiyodfsdfsyuidfsyiuiuyodfsiuoydfsuiyodsfuiyodfsuiyodfs",app)
}

return yz.uiDb.endDebugFn(null)
return yz.uiDb.endOfDebugSection(null)
},
addToEditableAppsAndEdit: async function ( contentHash ) {
//----------------------------------------------------------------------------------
Expand Down Expand Up @@ -11863,7 +11863,7 @@ <h1 style='width:100%;vertical-align:top;display:inline-block;font-size:100px; t
setTimeout(async function() {
await mm.editApp(result.base_component_id, result.code_id)
},50)
yz.uiDb.endDebugFn()
yz.uiDb.endOfDebugSection()
},
runAppInThisBrowserTab: async function ( baseComponentId, code_id ) {
/* Given the base component ID of an app, open that app in a separate
Expand Down Expand Up @@ -11969,7 +11969,7 @@ <h1 style='width:100%;vertical-align:top;display:inline-block;font-size:100px; t
await mm.runAppInNewBrowserTab(result.base_component_id)

},50)
yz.uiDb.endDebugFn()
yz.uiDb.endOfDebugSection()
},
editApp: async function ( baseComponentId, codeId) {
//----------------------------------------------------------------------------------
Expand Down Expand Up @@ -12057,7 +12057,7 @@ <h1 style='width:100%;vertical-align:top;display:inline-block;font-size:100px; t
}
}

return yz.uiDb.endDebugFn( osStructure )
return yz.uiDb.endOfDebugSection( osStructure )
},

showHomePage: function ( ) {
Expand Down Expand Up @@ -12644,7 +12644,7 @@ <h1 style='width:100%;vertical-align:top;display:inline-block;font-size:100px; t
}
}

yz.uiDb.endDebugFn()
yz.uiDb.endOfDebugSection()
},

// Simple web UI helpers
Expand Down Expand Up @@ -13838,7 +13838,7 @@ <h1 style='width:100%;vertical-align:top;display:inline-block;font-size:100px; t
let trimmed = fnUptoColon.trim()
return trimmed
},
endDebugFn: function ( returnValue ) {
endOfDebugSection: function ( returnValue ) {
yz.uiDb.currentDebugStack.steps.pop()
return returnValue
},
Expand Down Expand Up @@ -13928,7 +13928,7 @@ <h1 style='width:100%;vertical-align:top;display:inline-block;font-size:100px; t
nextLine = yz.uiDb.linesOfSourceFile[sourceForFunction.fileName][endLineNumber - 1]
if (endLineNumber == yz.uiDb.linesOfSourceFile[sourceForFunction.fileName].length) {
readAnotherLine = false
} else if (nextLine.indexOf("yz.uiDb.endDebugFn(") != -1) {
} else if (nextLine.indexOf("yz.uiDb.endOfDebugSection(") != -1) {
endLineNumber++
readAnotherLine = false
} else {
Expand Down Expand Up @@ -13992,7 +13992,7 @@ <h1 style='width:100%;vertical-align:top;display:inline-block;font-size:100px; t
nextLine = yz.uiDb.linesOfSourceFile[sourceForFunction.fileName][endLineNumber - 1]
if (endLineNumber == yz.uiDb.linesOfSourceFile[sourceForFunction.fileName].length) {
readAnotherLine = false
} else if (nextLine.indexOf("yz.uiDb.endDebugFn(") != -1) {
} else if (nextLine.indexOf("yz.uiDb.endOfDebugSection(") != -1) {
endLineNumber ++
readAnotherLine = false
} else {
Expand Down Expand Up @@ -14405,7 +14405,7 @@ <h1 style='width:100%;vertical-align:top;display:inline-block;font-size:100px; t
}
}).catch(err => {
})
yz.uiDb.endDebugFn()
yz.uiDb.endOfDebugSection()
},
addInstalledApp: async function ( dbg , app ) {
yz.uiDb.debugFn(arguments)
Expand All @@ -14415,7 +14415,7 @@ <h1 style='width:100%;vertical-align:top;display:inline-block;font-size:100px; t
"insert into ui_table_installed_apps ( code_id , base_component_id, logo, display_name,component_type) values (?,?,?,?,?)",
[app.code_id,app.base_component_id,app.logo_url, app.displayName, app.component_type])
}
yz.uiDb.endDebugFn()
yz.uiDb.endOfDebugSection()
},
installAppFromAppstore: async function ( dbg , { baseComponentId , codeId } ) {
yz.uiDb.debugFn(arguments)
Expand All @@ -14425,7 +14425,7 @@ <h1 style='width:100%;vertical-align:top;display:inline-block;font-size:100px; t
base_component_id: baseComponentId,
code_id: codeId
})
yz.uiDb.endDebugFn()
yz.uiDb.endOfDebugSection()
},
addRunningApp: async function ( app ) {
let alreadyRunningApp = yz.uiDb.sqlui1("select * from ui_table_running_apps where code_id = ? and status = ?", [app.code_id, "RUNNING"])
Expand Down
2 changes: 1 addition & 1 deletion public/visifile_drivers/apps/appstore.vjs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ logo_url("data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxIQEg8SEBE
let appRow = sqlui1("select base_component_id from ui_table_appstore_apps where content_hash = ?" , [ appInstanceId ] )
await yz.installAppFromAppstore("dfsasdfdfsadsffdsdfsdfsfdsfdsa", {baseComponentId: appRow.base_component_id , codeId: appInstanceId})
hideProgressBar();
yz.uiDb.endDebugFn()
yz.uiDb.endOfDebugSection()
}
}
}
Expand Down

0 comments on commit 0708b3f

Please sign in to comment.