Skip to content

Question: How to use ruby-debug-ide with unicorn? How to use --attach-mode? #230

Open
@isaiahshiner

Description

@isaiahshiner

I'm running rails through unicorn, and it's not clear how to start the debugger when pointing to unicorn instead of rails. I assume --attach-mode can be used for this exact purpose, to start the rails and then attach to it later, but I can't find any information on how to do that, or really any user-focused documentation.

In some ways, this question is really just "where is the documentation?" After a lot of research, I am quite sure what I want to do is possible. RubyMine seems to do it automatically, it's just that VSCode users aren't typically trying to do this.

The relevant StackOverFlow question.

I am able to start using the very simple rdebug-ide -- ./bin/rails s, and then attach in VScode. It just isn't running my actual project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions