ruby - 如何检查我安装的 Ruby 是否有调试符号?

标签 ruby debug-symbols

Memprof

Memprof supports all 1.8.x (MRI and REE) VMs, as long as they are 64-bit and contain debugging symbols. For best results, use RVM to compile ruby and make sure you are on a 64-bit machine.

如何检查我安装的 Ruby 是否有调试符号?

最佳答案

尝试调试它?

$ gdb ruby

GNU gdb (GDB) 7.0-ubuntu
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/tom/.rvm/rubies/ruby-1.9.2-p0/bin/ruby...done.
(gdb) 

如果它成功读取符号,则可以合理地假设符号在那里。至于32位和64位,我认为“i486-linux-gnu”意味着32位。但我不是这方面的专家。

关于ruby - 如何检查我安装的 Ruby 是否有调试符号?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4777312/

相关文章:

ruby - 有没有办法在 Ruby 中获取所有变量?

ruby-on-rails - Rails 控制台不工作 "You may have encountered a bug"

ruby - 如何在 Ruby (Rmagick) 中停止 ImageMagick 评估文本注释中的 @ 符号

Ruby:仅当非空时才将选项传递给方法

visual-studio-2008 - 调试 NET Framework 源代码不可用

azure - 如何删除azure工件符号包

ruby-on-rails - 迭代named_scope内的has_many集合

c++ - Windbg 从改变的位置加载符号

macos - OS X Chrome的调试符号

android-studio - 需要定义android studio调试图标