Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
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
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,11 @@
"type": "string",
"description": "If you want to run more than one debugger, you can specify the port here.",
"default": "1234"
},
"includes": {
"type": "array",
"description": "Additional paths to be added to Ruby's include path",
"default": []
}
}
},
Expand Down
7 changes: 7 additions & 0 deletions src/debugger/ruby.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,13 @@ export class RubyProcess extends EventEmitter {
runtimeExecutable = args.pathToBundler;
}
}

if (args.includes){
args.includes.forEach((path) => {
runtimeArgs.push('-I')
runtimeArgs.push(path)
})
}
// '--' forces process arguments (args.args) not to be swollowed by rdebug-ide
this.debugprocess = childProcess.spawn(runtimeExecutable, [...runtimeArgs, '--', args.program, ...args.args || []], {cwd: processCwd, env: processEnv});

Expand Down