Yes, why not. At current moment RubyMine doesn't allow to set breakpoint directly in *.feature file(the limitation will be removed in next public build) but you always can set breakpoints in step definition files.
thanks, I was running Cucumber with rake and couldn't see how to attach the debugger.
Now I tried to run a Cucumber configuration with debugger, which I created as shown on your screenshot, but I get a "no tests found" message. Test are running fine either with rake or without debugger. Do you have an idea, why running with debugger doesn't work here?
Regards, Uwe --
/usr/local/bin/ruby -e STDOUT.sync=true;STDERR.sync=true;load($0=ARGV.shift) /usr/local/bin/rdebug-ide --port 57904 -- /Users/uwe/Projekte/rails/testproject/script/cucumber /Users/uwe/Projekte/rails/testproject/features/manage_counties.feature --format Teamcity::Cucumber::Formatter --expand --color Testing started at 18:15 ... Fast Debugger (ruby-debug-ide 0.4.9) listens on :57904 uninitialized constant Debugger::CommandProcessor (NameError) /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:440:in `load_missing_constant' /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:80:in `const_missing' /usr/local/lib/ruby/gems/1.8/gems/ruby-debug-0.10.3/cli/ruby-debug.rb:9 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require' /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `polyglot_original_require' /usr/local/lib/ruby/gems/1.8/gems/polyglot-0.2.9/lib/polyglot.rb:70:in `require' /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:158:in `require' /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/kernel/requires.rb:7:in `require_library_or_gem' /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings' /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/kernel/requires.rb:5:in `require_library_or_gem' /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/test_help.rb:30 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `polyglot_original_require' /usr/local/lib/ruby/gems/1.8/gems/polyglot-0.2.9/lib/polyglot.rb:70:in `require' /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:158:in `require' /usr/local/lib/ruby/gems/1.8/gems/cucumber-0.4.4/bin/../lib/cucumber/rails/world.rb:2 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `polyglot_original_require' /usr/local/lib/ruby/gems/1.8/gems/polyglot-0.2.9/lib/polyglot.rb:70:in `require' /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:158:in `require' /Users/uwe/Projekte/rails/testproject/features/support/env.rb:9 /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `polyglot_original_require' /usr/local/lib/ruby/gems/1.8/gems/polyglot-0.2.9/lib/polyglot.rb:70:in `require' /usr/local/lib/ruby/gems/1.8/gems/cucumber-0.4.4/bin/../lib/cucumber/rb_support/rb_language.rb:124:in `load_code_file' /usr/local/lib/ruby/gems/1.8/gems/cucumber-0.4.4/lib/cucumber/step_mother.rb:84:in `load_code_file' /usr/local/lib/ruby/gems/1.8/gems/cucumber-0.4.4/lib/cucumber/step_mother.rb:76:in `load_code_files' /usr/local/lib/ruby/gems/1.8/gems/cucumber-0.4.4/lib/cucumber/step_mother.rb:75:in `each' /usr/local/lib/ruby/gems/1.8/gems/cucumber-0.4.4/lib/cucumber/step_mother.rb:75:in `load_code_files' /usr/local/lib/ruby/gems/1.8/gems/cucumber-0.4.4/lib/cucumber/cli/main.rb:47:in `execute!' /usr/local/lib/ruby/gems/1.8/gems/cucumber-0.4.4/lib/cucumber/cli/main.rb:24:in `execute' /usr/local/lib/ruby/gems/1.8/gems/cucumber-0.4.4/bin/cucumber:8 /Users/uwe/Projekte/rails/testproject/script/cucumber:16:in `load' /Users/uwe/Projekte/rails/testproject/script/cucumber:16 /usr/local/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.4.9/lib/ruby-debug-ide.rb:109:in `debug_load' /usr/local/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.4.9/lib/ruby-debug-ide.rb:109:in `debug_program' /usr/local/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.4.9/bin/rdebug-ide:87 /usr/local/bin/rdebug-ide:19:in `load' /usr/local/bin/rdebug-ide:19 -e:1:in `load' -e:1 /usr/local/lib/ruby/gems/1.8/gems/cucumber-0.4.4/bin/cucumber:15:in `exit' /usr/local/lib/ruby/gems/1.8/gems/cucumber-0.4.4/bin/cucumber:15 /Users/uwe/Projekte/rails/testproject/script/cucumber:16:in `load' /Users/uwe/Projekte/rails/testproject/script/cucumber:16 /usr/local/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.4.9/lib/ruby-debug-ide.rb:109:in `debug_load' /usr/local/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.4.9/lib/ruby-debug-ide.rb:109:in `debug_program' /usr/local/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.4.9/bin/rdebug-ide:87 /usr/local/bin/rdebug-ide:19:in `load' /usr/local/bin/rdebug-ide:19 -e:1:in `load' -e:1 Uncaught exception: exit invalid option: --format Test::Unit automatic runner. Usage: /Users/uwe/Projekte/rails/testproject/script/cucumber -r, --runner=RUNNER Use the given RUNNER. (c[onsole], f[ox], g[tk], g[tk]2, t[k]) -n, --name=NAME Runs tests matching NAME. (patterns may be used). -t, --testcase=TESTCASE Runs tests in TestCases matching TESTCASE. (patterns may be used). -I, --load-path=DIR[:DIR...] Appends directory list to $LOAD_PATH. -v, --verbose=[LEVEL] Set the output level (default is verbose). (s[ilent], p[rogress], n[ormal], v[erbose]) -- Stop processing options so that the remaining options will be passed to the test. -h, --help Display this help. Deprecated options: --console Console runner (use --runner). --gtk GTK runner (use --runner). --fox Fox runner (use --runner). Empty test suite.
Process finished with exit code 1
Am 27.11.09 18:56, schrieb Roman.Chernyatchik:
Hello,
>
Yes, why not. At current moment RubyMine doesn't allow to set breakpoint directly in *.feature file(the limitation will be removed in next public build) but you always can set breakpoints in step definition files. Image:Screen shot 2009-11-27 at 18.51.59.png
Hello,

Yes, why not. At current moment RubyMine doesn't allow to set breakpoint directly in *.feature file(the limitation will be removed in next public build) but you always can set breakpoints in step definition files.
Hello Roman,
thanks, I was running Cucumber with rake and couldn't see how to attach
the debugger.
Now I tried to run a Cucumber configuration with debugger, which I
created as shown on your screenshot, but I get a "no tests found"
message. Test are running fine either with rake or without debugger.
Do you have an idea, why running with debugger doesn't work here?
Regards, Uwe
--
/usr/local/bin/ruby -e
STDOUT.sync=true;STDERR.sync=true;load($0=ARGV.shift)
/usr/local/bin/rdebug-ide --port 57904 --
/Users/uwe/Projekte/rails/testproject/script/cucumber
/Users/uwe/Projekte/rails/testproject/features/manage_counties.feature
--format Teamcity::Cucumber::Formatter --expand --color
Testing started at 18:15 ...
Fast Debugger (ruby-debug-ide 0.4.9) listens on :57904
uninitialized constant Debugger::CommandProcessor (NameError)
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:440:in
`load_missing_constant'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:80:in
`const_missing'
/usr/local/lib/ruby/gems/1.8/gems/ruby-debug-0.10.3/cli/ruby-debug.rb:9
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
`gem_original_require'
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
`polyglot_original_require'
/usr/local/lib/ruby/gems/1.8/gems/polyglot-0.2.9/lib/polyglot.rb:70:in
`require'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:158:in
`require'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/kernel/requires.rb:7:in
`require_library_or_gem'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/kernel/reporting.rb:11:in
`silence_warnings'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/core_ext/kernel/requires.rb:5:in
`require_library_or_gem'
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/test_help.rb:30
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`polyglot_original_require'
/usr/local/lib/ruby/gems/1.8/gems/polyglot-0.2.9/lib/polyglot.rb:70:in
`require'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:158:in
`require'
/usr/local/lib/ruby/gems/1.8/gems/cucumber-0.4.4/bin/../lib/cucumber/rails/world.rb:2
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`polyglot_original_require'
/usr/local/lib/ruby/gems/1.8/gems/polyglot-0.2.9/lib/polyglot.rb:70:in
`require'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:158:in
`require'
/Users/uwe/Projekte/rails/testproject/features/support/env.rb:9
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`polyglot_original_require'
/usr/local/lib/ruby/gems/1.8/gems/polyglot-0.2.9/lib/polyglot.rb:70:in
`require'
/usr/local/lib/ruby/gems/1.8/gems/cucumber-0.4.4/bin/../lib/cucumber/rb_support/rb_language.rb:124:in
`load_code_file'
/usr/local/lib/ruby/gems/1.8/gems/cucumber-0.4.4/lib/cucumber/step_mother.rb:84:in
`load_code_file'
/usr/local/lib/ruby/gems/1.8/gems/cucumber-0.4.4/lib/cucumber/step_mother.rb:76:in
`load_code_files'
/usr/local/lib/ruby/gems/1.8/gems/cucumber-0.4.4/lib/cucumber/step_mother.rb:75:in
`each'
/usr/local/lib/ruby/gems/1.8/gems/cucumber-0.4.4/lib/cucumber/step_mother.rb:75:in
`load_code_files'
/usr/local/lib/ruby/gems/1.8/gems/cucumber-0.4.4/lib/cucumber/cli/main.rb:47:in
`execute!'
/usr/local/lib/ruby/gems/1.8/gems/cucumber-0.4.4/lib/cucumber/cli/main.rb:24:in
`execute'
/usr/local/lib/ruby/gems/1.8/gems/cucumber-0.4.4/bin/cucumber:8
/Users/uwe/Projekte/rails/testproject/script/cucumber:16:in `load'
/Users/uwe/Projekte/rails/testproject/script/cucumber:16
/usr/local/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.4.9/lib/ruby-debug-ide.rb:109:in
`debug_load'
/usr/local/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.4.9/lib/ruby-debug-ide.rb:109:in
`debug_program'
/usr/local/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.4.9/bin/rdebug-ide:87
/usr/local/bin/rdebug-ide:19:in `load'
/usr/local/bin/rdebug-ide:19
-e:1:in `load'
-e:1
/usr/local/lib/ruby/gems/1.8/gems/cucumber-0.4.4/bin/cucumber:15:in `exit'
/usr/local/lib/ruby/gems/1.8/gems/cucumber-0.4.4/bin/cucumber:15
/Users/uwe/Projekte/rails/testproject/script/cucumber:16:in `load'
/Users/uwe/Projekte/rails/testproject/script/cucumber:16
/usr/local/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.4.9/lib/ruby-debug-ide.rb:109:in `debug_load'
/usr/local/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.4.9/lib/ruby-debug-ide.rb:109:in `debug_program'
/usr/local/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.4.9/bin/rdebug-ide:87
/usr/local/bin/rdebug-ide:19:in `load'
/usr/local/bin/rdebug-ide:19
-e:1:in `load'
-e:1
Uncaught exception: exit
invalid option: --format
Test::Unit automatic runner.
Usage: /Users/uwe/Projekte/rails/testproject/script/cucumber
-r, --runner=RUNNER Use the given RUNNER.
(c[onsole], f[ox], g[tk], g[tk]2,
t[k])
-n, --name=NAME Runs tests matching NAME.
(patterns may be used).
-t, --testcase=TESTCASE Runs tests in TestCases matching
TESTCASE.
(patterns may be used).
-I, --load-path=DIR[:DIR...] Appends directory list to $LOAD_PATH.
-v, --verbose=[LEVEL] Set the output level (default is
verbose).
(s[ilent], p[rogress], n[ormal],
v[erbose])
-- Stop processing options so that the
remaining options will be passed
to the
test.
-h, --help Display this help.
Deprecated options:
--console Console runner (use --runner).
--gtk GTK runner (use --runner).
--fox Fox runner (use --runner).
Empty test suite.
Process finished with exit code 1
Am 27.11.09 18:56, schrieb Roman.Chernyatchik:
>
>
Here Test::Unit receives cucumber command line arguments by some reason.
E.g this message has no sense, just compare output with /Users/uwe/Projekte/rails/testproject/script/cucumber --help
We should investigate it more. I've filed an issue - http://youtrack.jetbrains.net/issue/RUBY-5548
Issue depends on the ruby-debug-ide used. I had the latest version
installed (0.4.9). After downgrading to 0.4.7 debugging works.
Am 27.11.09 22:02, schrieb Roman.Chernyatchik:
>
>
>