diff --git a/index.js b/index.js index 8605707..55184a8 100644 --- a/index.js +++ b/index.js @@ -190,6 +190,8 @@ function treeCompile(e, gdb) { // spawn gcc or g++ to compile files and optionally run the compiled files function compile(command, info, args, gdb) { + console.info(command, info, args, gdb); + // store the current editor in the editor variable const editor = atom. workspace. @@ -304,7 +306,7 @@ function compile(command, info, args, gdb) { // cmd to run the program const file = getTmp(info.name); - child_process.exec(`start "${info.name}" cmd /C "${gdb ? "gdb" : ""} ${file} ${gdb ? "" : "& echo. & pause"}`); + child_process.exec(`start "${info.name}" cmd /C "${gdb ? "gdb" : ""} ${file} ${gdb ? "" : "& echo. & pause"}`, options); } else if (process.platform === "darwin") { // if the platform is mac, spawn open, which does the same thing as // Windows' start, but is not a builtin, so we can child_process.spawn