Giter Site home page Giter Site logo

Comments (7)

jthele avatar jthele commented on August 10, 2024 5

I'm facing a very similar problem of debugging against a Rails application in a container. I appreciate that there is a workaround using SSH (and will investigate that path), but I also think the ability to control which ports are used for child process debugging could be a useful feature. Is that firmly not the direction you want to take ruby-debug-ide, or would you consider the the proposed solution @caleb presented in his commit? Container development often has a philosophy of minimal containers with minimal services, so having an SSH service readily available is not as much as a given as it would be for typical remote server integrations.

from ruby-debug-ide.

noizex avatar noizex commented on August 10, 2024 1

I agree, this would be useful option - I actually figured out the same solution even before I ran into this issue. There was a problem with debugging session hanging and I tracked it down to this subprocess spawning and opening a random port, to which RubyMine had no access (because I'm also using Docker container with only certain ports being forwarded).

I'm looking into SSH solution, but I don't really understand how it works with ruby-debug-ide - @caleb since you figured it out could you share some tips?

Having a list of ports supplied to ruby-debug-ide instead of picking random port wouldn't hurt as an additional functionality though. It can fallback to random ports once the pool is exhausted, and it will probably require returning ports to the pool if process exits, so it may require a bit more work to be robust and bullet-proof.

PS. Actually setting SSHD connection to Docker container is not that trivial either :(

from ruby-debug-ide.

denofevil avatar denofevil commented on August 10, 2024

Have you tried adding ruby from your container via remote interpreter integration? It will require only one open port for SSH connection and will push all required connections via SSH tunnel

from ruby-debug-ide.

caleb avatar caleb commented on August 10, 2024

@denofevil I haven't. I saw that that was a thing, but didn't quite understand it. So I would have to add SSH to my container and then use RubyMine to launch my Unicorn server (using the remote ruby) and it would just do the right thing?

Would that mean I wouldn't need this gem?

from ruby-debug-ide.

denofevil avatar denofevil commented on August 10, 2024

@caleb, yes, you'll need just SSH to your container. The gem will be installed automatically and you won't need to specify port settings manually

from ruby-debug-ide.

caleb avatar caleb commented on August 10, 2024

Cool! I'll give that a whirl. Thanks!

UPDATE: This is very cool once I got it set up!

from ruby-debug-ide.

mrbiggred avatar mrbiggred commented on August 10, 2024

I posted a potential workaround that does not involve setting up SSH in your Docker container in issue #107:

#107 (comment)

from ruby-debug-ide.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.