示例工程 06-dev-debug-logging
06-dev-debug-logging/demo-02-debug-env/main/index.ts
import { app } from "electron";
app.whenReady().then(() => {
console.log(
JSON.stringify({
evt: "smoke",
ok: true,
execArgv: process.execArgv,
enableLogging: process.env.ELECTRON_ENABLE_LOGGING === "1",
logsPath: app.getPath("logs"),
isPackaged: app.isPackaged,
}),
);
app.quit();
});