Feat: add debug code

This commit is contained in:
unitwk 2022-09-18 18:03:22 +08:00
parent d9232c92b5
commit 9f2303ce06

View File

@ -164,9 +164,9 @@ export default class PtyStartCommand extends InstanceCommand {
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));
subProcess.stdout.on("data", (text) => console.log("DEBUG", text));
subProcess.stderr.on("data", (text) => console.log("DEBUG", text));
subProcess.on("exit", (code) => console.log("DEBUG EXIT", code));
// create process adapter
const ptySubProcessCfg = await this.readPtySubProcessConfig(subProcess);