-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdebug.js
More file actions
31 lines (27 loc) · 994 Bytes
/
debug.js
File metadata and controls
31 lines (27 loc) · 994 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Debug: Force debug mode while running the normal boot script
let debug = false; // true: Enabled - false: Disabled
// AutoCommand: Lets you run commands automatically for testing purposes.
let autocmd = {
on: false, // set this to true if you want to use it
command: "", // add the command you want to run here
user: {
//
username: "", // add account username here
password: "", // add account password here
},
};
// AUTO COMMAND
// No Panic: Disables the panic screen while in debug mode.
let nopanic = true; // true: Sends usual Node.JS errors - false: Use adyOS panics
// Debug mode can also be enabled by using `npm run debug` or `./bin/debug` if on Linux
// That function is handled by this code
if (process.argv.includes("--debug-mode-enabled")) {
debug = true;
}
if (process.argv.includes("--autocmd")) {
autocmd.on = true;
}
if (process.argv.includes("--no-panic")) {
nopanic = true;
}
export { debug, autocmd, nopanic };