forked from mirror/MCSM-Daemon
Feat: add debug code
This commit is contained in:
parent
1983a406e5
commit
d9232c92b5
@ -164,6 +164,10 @@ 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));
|
||||||
|
process.stderr.on("data", (text) => console.log("DEBUG", text));
|
||||||
|
process.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);
|
||||||
const processAdapter = new ProcessAdapter(subProcess, ptySubProcessCfg.pid);
|
const processAdapter = new ProcessAdapter(subProcess, ptySubProcessCfg.pid);
|
||||||
|
Loading…
Reference in New Issue
Block a user