Project

General

Profile

Feature #16513

TracePoint#inspect to return "... file:line" instead of "...@file:line"

Added by znz (Kazuhiro NISHIYAMA) 7 months ago. Updated 1 day ago.

Status:
Closed
Priority:
Normal
Target version:
-
[ruby-core:96905]

Description

Proc#to_s and Thread#to_s have changed, but TracePoint#inspect includes @.

I think changing TracePoint#inspect too is better for consistency.

% ruby -ve 'TracePoint.new{p _1}.enable;p'
ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-darwin18]
#<TracePoint:c_call `p'@-e:1>
#<TracePoint:c_return `p'@-e:1>
#3

Updated by sawa (Tsuyoshi Sawada) 2 days ago

  • Description updated (diff)
  • Subject changed from TracePoint#inspect returns "... file:line" instead of "...@file:line" to TracePoint#inspect to return "... file:line" instead of "...@file:line"
#4

Updated by nguyenquangminh0711 (Minh Nguyen) 1 day ago

  • Status changed from Assigned to Closed

Applied in changeset git|1819652578e8f9fe3606f7a716ec4e427fc55f0a.


[Feature #16513] TracePoint#inspect returns "... file:line" (#3391)

  • Fix debug documents to match Thread#to_s change (Feature #16412 ticket)

  • TracePoint#inspect returns "... file:line" (Feature #16513)

  • Guard older version of Ruby in Tracepoint inspection tests

  • Focus on current thread only when running TracePoint inspection test

Also available in: Atom PDF