How to debug scenarios?

Feb 16, 2011 at 3:53 AM

I tried to set breakpoints in both feature file and step definition files but it doesn't stop at the breakpoints. How to debug scenarios? A screencast is very welcome.

Feb 16, 2011 at 9:50 AM

How are you executing your feature files?  Through the command line or via the VS add-in?

Feb 17, 2011 at 2:16 AM

I execute them via VS add-in.

Feb 17, 2011 at 9:25 AM

Put a breakpoint in your step definition, and then choose "Debug Scenario" from the context menu.  Your breakpoint should be hit.

Feb 17, 2011 at 6:46 PM

Being able to set a break point in the feature file which never gets hit is misleading... I've created a bug for this

I'll have a screencast created next week, however it really should work according to the Wiki:

If its not working it may well be a bug, could you create a sample solution which I can test?