Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to debug inside a step definition? #54

Open
gduquesnay opened this issue Feb 15, 2011 · 3 comments
Open

how to debug inside a step definition? #54

gduquesnay opened this issue Feb 15, 2011 · 3 comments

Comments

@gduquesnay
Copy link

When I put a 'debugger' statement inside a step definition and run cucumber. I get dropped into a debug session but can't type anything. If I do "Ctrl-C" I can type but page.body gives exceptions like "DRb::DRbConnError Exception: druby://127.0.0.1:44537 - #<Errno::ECONNREFUSED: Connection refused - connect(2)>".

How do I debug?

@phillipkoebbe
Copy link

I can type, but many keystrokes don't get picked up. It usually takes pressing the same key about 4 times before it registers. For example, if I want to "puts page.body", I have to type

ppppuuuuttttssss[space][space][space][space]ppppaaaaggggeeee....bbbbooooddddyyyy[return][return][return][return]

Again, those don't all show up, but I have to type like that to get things recognized. It's quite a hassle. I cringe any time I discover I have to debug in Akephalos. This is one of few complaints from me. I can do a screen recording if it will help.

@jrafanie
Copy link

jrafanie commented Sep 8, 2011

Have you tried doing something like this instead of running with a debugger?
http://railsdog.com/blog/2011/02/22/cucumber-testing-tips/

I enhanced this idea to use provide access to the current page through akephalos. See my example here:
https://gist.github.com/1203731

@phillipkoebbe
Copy link

Thanks for the information, jrafanie. I will definitely look into it. I'll have to change my work flow a bit, but that's not always a bad thing :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants