Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 ruby-debug 中,下一个命令会将您带到要执行的下一行代码,无论该行是在您自己的代码中,还是在 rails 框架中,还是在 gem 中。
是否有某种方法可以强制 ruby-debug (1.9) 跳转到它在代码中遇到的下一行,而不会停止它必须沿途执行的所有其他行?
就在这里。
您可以使用break linenum在任意行号(例如下一个)上手动设置断点,然后键入c以继续到下一个断点。
break linenum
c
ruby-debug 断点的文档可能也会对您有所帮助。