#2 implement debugger
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import { DebugBuilder } from "./modules/debugger.mjs";
|
||||
const log = new DebugBuilder("client", "cliHandler");
|
||||
import { spawn } from "child_process";
|
||||
|
||||
/**
|
||||
@@ -18,7 +20,7 @@ export const executeCommand = (command, args) => {
|
||||
|
||||
childProcess.stderr.on('data', (data) => {
|
||||
// Log any errors to stderr
|
||||
console.error(data.toString());
|
||||
log.ERROR(data.toString());
|
||||
});
|
||||
|
||||
childProcess.on('error', (error) => {
|
||||
|
||||
Reference in New Issue
Block a user