This project is read-only.

How to debug scenarios?

Feb 16, 2011 at 4: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 10:50 AM

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

Feb 17, 2011 at 3:16 AM

I execute them via VS add-in.

Feb 17, 2011 at 10: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 7: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 http://code.google.com/p/nbehave/issues/detail?id=63

I'll have a screencast created next week, however it really should work according to the Wiki: http://nbehave.codeplex.com/wikipage?title=Getting%20started%20with%20the%20Visual%20Studio%202010%20plugin&referringTitle=0.5.0

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