Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug #105

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
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