Skip to content

Ruby debug docs: 10 linked screenshots don't exist #1840

Done

Description

@muescha

Problem

The page docs/dap/user-defined-dap/ruby-rdbg.md was added in 335daf80 (#1082). That commit only added select_new_server.png and select_template.png. The page also links to 10 images that were never committed, so they show up as broken images:

  • set_breakpoint.png (linked twice)
  • traces_in_console.png (linked twice)
  • set_traces.png
  • configuration_tab.png
  • attach_fields_preview.png
  • attach_fields_forced.png
  • start_program.png
  • start_program_and_attach.png
  • debug_threads_tab.png
  • completion.png

The missing file_mappings.png was already added in #1838.

Impact

Someone setting up Ruby debugging sees the steps without the screenshots for setting a breakpoint, configuring the run configuration, starting the program and debugging.

Question

@angelozerr Do you still have these screenshots from #1082? If so, could you add them or share them, and I'll add them in a PR.

If not, they'd have to be recreated with a working Ruby debug setup. Alternatively, the links could be removed until someone has one.

Note: This issue was drafted with Claude Code.

Activity

  1. angelozerr commented on Nov 3, 2026

    @angelozerr
    Contributor

    @muescha I did that super quickly (copy/paste from another DAP debugger page) and it misses indeed those images.

    if you have time to do that it would be super nice.

  2. muescha commented on Nov 4, 2026

    @muescha
    ContributorAuthor

    OK, I understand that you don't have the screenshots.

    I'll try to recreate them. Claude made drafts of what each screenshot should show, which I'll post in the next comment. They are only sketches, so I still have to recreate the screenshots with the real rdbg.

    Please give me some days for the PR. I hope it's not urgent ;)

    Note: This comment was drafted with Claude Code.

  3. muescha commented on Nov 4, 2026

    @muescha
    ContributorAuthor

    Here is a more visual version of what the missing screenshots should show.

    The Ruby page follows the Python page section by section. So each section below shows the existing Debugpy image first, then a sketch of the expected Ruby image.

    The sketches are not screenshots. They were drawn in HTML, and nothing was run with Ruby. Their markings mean:

    • Red: frames and lines, as in the original images.
    • Amber: different from Debugpy, based on the Ruby page, the existing Ruby images, the templates or the rdbg sources.
    • Dashed violet: an assumption to check when taking the real screenshot.

    set_breakpoint.png

    Used in L18 and L114 of the Ruby page.

    Debugpy (existing)

    Debugpy: set_breakpoint.png

    Ruby (sketch)

    Ruby sketch: set_breakpoint.png
    • The Debugpy image shows more than a breakpoint: the session has already stopped, and a popup shows the value of user.
    • The breakpoint is on line 3 for Ruby too, because that's where hello.rb has puts user.
    • rdbg returns the type String and the value in double quotes. How LSP4IJ displays them is an assumption.

    traces_in_console.png

    Used in L62 and L137 of the Ruby page.

    Debugpy (existing)

    Debugpy: traces_in_console.png

    Ruby (sketch)

    Ruby sketch: traces_in_console.png
    • The trace sequence is copied from Debugpy. Order and timings will differ with rdbg.
    • The hello world line is questionable. L106 says redirectOutput shows the output in the console, but this option doesn't appear in rdbg's server_dap.rb. The output may stay in the terminal.

    set_traces.png

    Used in L66 of the Ruby page.

    Debugpy (existing)

    Debugpy: set_traces.png

    Ruby (sketch)

    Ruby sketch: set_traces.png
    • The server name and the timeout of 1000 come from the existing Ruby image select_new_server.png.
    • Command stays empty because rdbg is used with attach (L55-L56).

    configuration_tab.png

    Used in L79 of the Ruby page.

    Debugpy (existing)

    Debugpy: configuration_tab.png

    Ruby (sketch)

    Ruby sketch: configuration_tab.png
    • The JSON is taken from L84-L95, and 12345 matches the terminal command.
    • This doesn't match the templates: attach.json only has type, name and request, and template.json sets the attach port to $port. The real screenshot may look different.

    attach_fields_preview.png

    Used in L100 of the Ruby page.

    Debugpy (existing)

    Debugpy: attach_fields_preview.png

    Ruby (sketch)

    Ruby sketch: attach_fields_preview.png
    • Compared to Debugpy, only the port changes, from 5678 to 12345.
    • The placeholders are the ones named in L97. They are marked as assumptions because of "port": "$port" in the template.

    attach_fields_forced.png

    Used in L104 of the Ruby page.

    Debugpy (existing)

    Debugpy: attach_fields_forced.png

    Ruby (sketch)

    Ruby sketch: attach_fields_forced.png
    • The Debugpy image shows port 1234, although its program waits on 5678. The sketch uses 12345, so that the connection would also work.
    • The JSON stays unchanged in the Debugpy image despite the typed values, so it does in the sketch too.

    start_program.png

    Used in L127 of the Ruby page.

    Debugpy (existing)

    Debugpy: start_program.png

    Ruby (sketch)

    Ruby sketch: start_program.png
    • The command is from L122. The two output lines come from rdbg's sources and README.
    • The printed address depends on the system and may differ.

    start_program_and_attach.png

    Used in L133 of the Ruby page.

    Debugpy (existing)

    Debugpy: start_program_and_attach.png

    Ruby (sketch)

    Ruby sketch: start_program_and_attach.png
    • The image shows that address and port in the configuration match the waiting program, which is what the red lines are for.
    • With Debugpy, the address is part of the command. With rdbg, the command only has the port, so the address line points to the output instead.

    debug_threads_tab.png

    Used in L141 of the Ruby page.

    Debugpy (existing)

    Debugpy: debug_threads_tab.png

    Ruby (sketch)

    Ruby sketch: debug_threads_tab.png
    • In rdbg's server_dap.rb, the scopes are named Local variables and Global variables, not Locals and Globals.
    • The thread and frame names are assumptions. The Debugpy image shows <invalid frame> there, so it's worth checking whether that also happens with Ruby.
    • rdbg --open stops at program start unless --nonstop is used, so this screenshot probably needs one resume to reach the breakpoint.
    • The Debugpy image shows the whole IDE. The sketch leaves out the project tree.

    completion.png

    Used in L145 of the Ruby page.

    Debugpy (existing)

    Debugpy: completion.png

    Ruby (sketch)

    Ruby sketch: completion.png
    • rdbg reports supportsCompletionsRequest: true, so this screenshot should be possible.
    • The proposals in the sketch are typical String methods. Which ones rdbg returns, and in which order, is open.

    Python leftovers in the text

    The Ruby page still mentions Python- Debugpy (L48, L77), test.py (L112) and Debugpy completion (L143).

    Note: This comment and the sketches were drafted with Claude Code.

  4. added
    documentation
    dap
    on Nov 21, 2026
  5. lagergren commented on Nov 25, 2026

    @lagergren
    Collaborator

    Fixed on main by #2092 (01c7a2ac), which removed the links to the 10 missing images. docs/dap/user-defined-dap/ruby-rdbg.md now links only the 3 screenshots that exist (select_template.png, select_new_server.png, file_mappings.png).

  6. muescha commented on Nov 26, 2026

    @muescha
    ContributorAuthor

    The 10 screenshots are back in the Ruby page with #2294 (merged): they were taken with a real rdbg setup and are linked again where #2092 removed them.

  7. added this to the 0.30.2 milestone on Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    dapdocumentation

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions