因为是用 C 写的?你可以试试在命令行运行下面代码 $ gem install pry-doc $ irb require 'pry' binding.pry show-source File#open
$ gem install pry-doc
$ irb
require 'pry'
binding.pry
show-source File#open
https://github.com/pry/pry/wiki/Source-browsing#C_source