[英]Debugging Cucumber step definitions
Is there a way of stopping execution of a step definition in order to examine the values of instance variables?有没有办法停止执行步骤定义以检查实例变量的值? Maybe debugger, but that didn't work when I tried it just now.
也许是调试器,但是当我刚刚尝试时,它不起作用。
Debugger will work.调试器将工作。 You need to require ruby-debug either with
require 'ruby-debug'
or by passing the -d option to the cucumber executable.您需要使用
require 'ruby-debug'
或通过将 -d 选项传递给 cucumber 可执行文件来要求 ruby-debug。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.