Skip to content

use_short_path should also be applied to tracer paths #701

@st0012

Description

@st0012

Your environment

  • ruby -v: 3.1.0
  • rdbg -v: master (5dd00d5)

Describe the bug

Tracer output's path doesn't respect the use_short_path config.

To Reproduce

`target.rb

debugger(do: "break Gem.operating_system_defaults do: bt ;; trace call /gems/")

Gem.operating_system_defaults
$ RUBY_DEBUG_USE_SHORT_PATH=1 ruby -Ilib -rdebug target.rb
# .... not important
(rdbg:break) bt
=>#0    Gem.operating_system_defaults at $(rubylibdir)/rubygems/defaults.rb:256
  #1    <main> at target.rb:3
DEBUGGER (trace/call) #th:1 #depth:2 <  Gem.operating_system_defaults #=> {} at /Users/st0012/.rbenv/versions/3.1.0/lib/ruby/3.1.0/rubygems/defaults.rb:257

Expected behavior

Trace's path should be shorten like backtrace.

DEBUGGER (trace/call) #th:1 #depth:2 <  Gem.operating_system_defaults #=> {} at $(rubylibdir)/rubygems/defaults.rb:257

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions