feat(debug): add debugging information

This commit is contained in:
Maarten
2023-12-20 11:32:10 +01:00
parent da8b528856
commit 3813678469

View File

@@ -257,6 +257,20 @@ ipcRenderer.on("ready", async () => {
await toggleFormAccessibility(false) //enable the form again
await validateChoice() // updates the 'enabled/disabled' html value of the terminal dropdown.
console.debug(`DEBUGGING INFORMATION:
--
OS: ${process.platform}
Version: ${app_version}
--
Working directory locating methods:
process.cwd(): ${process.cwd()}
__dirname: ${__dirname}
PORTABLE_EXECUTABLE_DIR: ${process.env.PORTABLE_EXECUTABLE_DIR}
--
platformpath(): ${platformpath()}
`)
document.getElementById("loader").hidden = true
ready = false
})
@@ -331,7 +345,3 @@ ipcRenderer.on("version", (event, version) => {
document.getElementById("version-info").innerText = `v${version}`
app_version = version.toString()
})
ipcRenderer.on("print", (event, message) => {
console.log(message)
})