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

Add support for custom ports to the Ruby debugger. #127

Merged
merged 4 commits into from
Apr 19, 2017

Conversation

benglewis
Copy link

Make sure these boxes are checked before submitting your PR -- thanks in advance!

@benglewis
Copy link
Author

Can I have some help with getting the tests to pass @rebornix ?

@rebornix
Copy link
Member

@ukblewis I'll take a look

@benglewis
Copy link
Author

@rebornix Thank you - any progress so far?

src/ruby.ts Outdated
@@ -218,7 +222,7 @@ export class RubyProcess extends EventEmitter {

this.debugprocess.stderr.on('data', (data: Buffer) => {
if (/^Fast Debugger/.test(data.toString())) {
this.debugSocketClient.connect(1234);
this.debugSocketClient.connect(args.debuggerPort);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

args.debuggerPort might be undefined so you may want to use args.debuggerPort | 1234, that's why the test cases fail.

.travis.yml Outdated
@@ -9,7 +9,7 @@ before_install:
- nvm install v5.10.0
- nvm use v5.10.0
before_script:
- npm install -g typescript
- npm install -g typescript@1.8.2
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I already fix this in master, do you mind reverting this line of change.

@rebornix
Copy link
Member

LGTM, just two tiny comments and they should be real easy fix.

@rebornix rebornix merged commit 4ba149f into rubyide:master Apr 19, 2017
@rebornix
Copy link
Member

@ukblewis thanks, it's really awesome!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants