forked from mirror/MCSM-Daemon
Feat: add debug code
This commit is contained in:
parent
d9232c92b5
commit
9f2303ce06
@ -164,9 +164,9 @@ export default class PtyStartCommand extends InstanceCommand {
|
|||||||
throw new StartupError($t("pty_start.instanceStartErr"));
|
throw new StartupError($t("pty_start.instanceStartErr"));
|
||||||
}
|
}
|
||||||
|
|
||||||
process.stdout.on("data", (text) => console.log("DEBUG", text));
|
subProcess.stdout.on("data", (text) => console.log("DEBUG", text));
|
||||||
process.stderr.on("data", (text) => console.log("DEBUG", text));
|
subProcess.stderr.on("data", (text) => console.log("DEBUG", text));
|
||||||
process.on("exit", (code) => console.log("DEBUG EXIT", code));
|
subProcess.on("exit", (code) => console.log("DEBUG EXIT", code));
|
||||||
|
|
||||||
// create process adapter
|
// create process adapter
|
||||||
const ptySubProcessCfg = await this.readPtySubProcessConfig(subProcess);
|
const ptySubProcessCfg = await this.readPtySubProcessConfig(subProcess);
|
||||||
|
Loading…
Reference in New Issue
Block a user