Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

Commit 68bbf16

Browse files
committed
fix rdebug-ide invocation error on windows platform
1 parent 949e8d1 commit 68bbf16

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

src/ruby.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,19 @@ export class RubyProcess extends EventEmitter {
3737

3838
var that = this;
3939
var runtimeArgs = ['--evaluation-timeout', '10'];
40-
var runtimeExecutable = 'rdebug-ide';
40+
var runtimeExecutable: string;
41+
42+
if (process.platform === 'win32') {
43+
runtimeExecutable = 'rdebug-ide.bat';
44+
}
45+
else if (process.platform === 'darwin') {
46+
runtimeExecutable = 'rdebug-ide';
47+
}
48+
else {
49+
// platform: linux
50+
runtimeExecutable = 'rdebug-ide';
51+
}
52+
4153
var programArgs = [];
4254
var processCwd = dirname(this.launchArgs.program);
4355

0 commit comments

Comments
 (0)