使用 Rubymine 调试时如何不进入 gems
How to not step into gems when debugging with Rubymine
在使用 Rubymine 调试 rails 应用程序时,我只想单步执行 应用程序中的代码,跳过 gems 中的代码。
如何实现?
在主设置中打开忽略非项目源选项:
Rubymine help 对该功能的解释如下:
Select this check box to automatically skip the external libraries code and keep the focus on your own code.
RubyMine will not stop at any non-project code no matter what stepping command is used. This option also prevents opening external files in the editor tabs while debugging.
This option works for Ruby 2.x only; it is not supported for Ruby 1.8 and 1.9.
在使用 Rubymine 调试 rails 应用程序时,我只想单步执行 应用程序中的代码,跳过 gems 中的代码。
如何实现?
在主设置中打开忽略非项目源选项:
Rubymine help 对该功能的解释如下:
Select this check box to automatically skip the external libraries code and keep the focus on your own code. RubyMine will not stop at any non-project code no matter what stepping command is used. This option also prevents opening external files in the editor tabs while debugging.
This option works for Ruby 2.x only; it is not supported for Ruby 1.8 and 1.9.