Skip to content
Open

Debug #105

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down