<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Debugging Cuke4Nuke Step Definitions</title>
	<atom:link href="http://www.richardlawrence.info/2010/01/12/debugging-cuke4nuke-step-definitions/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.richardlawrence.info/2010/01/12/debugging-cuke4nuke-step-definitions/</link>
	<description>On making software teams happier and more productive</description>
	<lastBuildDate>Fri, 03 Feb 2012 10:41:13 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Cucumber Tip: IRB From Inside a Step Definition &#124; The Agile Radar</title>
		<link>http://www.richardlawrence.info/2010/01/12/debugging-cuke4nuke-step-definitions/comment-page-1/#comment-13405</link>
		<dc:creator>Cucumber Tip: IRB From Inside a Step Definition &#124; The Agile Radar</dc:creator>
		<pubDate>Thu, 08 Dec 2011 08:16:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.richardlawrence.info/?p=255#comment-13405</guid>
		<description>[...] Related posts:Debugging Cuke4Nuke Step Definitions [...]</description>
		<content:encoded><![CDATA[<p>[...] Related posts:Debugging Cuke4Nuke Step Definitions [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: flores</title>
		<link>http://www.richardlawrence.info/2010/01/12/debugging-cuke4nuke-step-definitions/comment-page-1/#comment-5394</link>
		<dc:creator>flores</dc:creator>
		<pubDate>Thu, 14 Apr 2011 13:43:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.richardlawrence.info/?p=255#comment-5394</guid>
		<description>1. I added in step [Before] decorated method

#if DEBUG
            Debugger.Break();   
#endif

2. Then when I ran Cuke4Nuke ... form command line I by OS that:
&quot;Application Server met breakpoint...&quot;
Then OS displayed a dialog named &quot;Application Server has stopped working...&quot; with &quot;Debug&quot; button

3. Clicking on the button I was able to attach VS debugger to Cuke4Nuke.Server.exe

4. Next I was able to debug what I wanted (including G/W/T parameters passed from features files)

cuke4nuke: 0.4.0
cucumber: 0.10.2
ruby: 1.9.2
OS: W7/64</description>
		<content:encoded><![CDATA[<p>1. I added in step [Before] decorated method</p>
<p>#if DEBUG<br />
            Debugger.Break();<br />
#endif</p>
<p>2. Then when I ran Cuke4Nuke &#8230; form command line I by OS that:<br />
&#8220;Application Server met breakpoint&#8230;&#8221;<br />
Then OS displayed a dialog named &#8220;Application Server has stopped working&#8230;&#8221; with &#8220;Debug&#8221; button</p>
<p>3. Clicking on the button I was able to attach VS debugger to Cuke4Nuke.Server.exe</p>
<p>4. Next I was able to debug what I wanted (including G/W/T parameters passed from features files)</p>
<p>cuke4nuke: 0.4.0<br />
cucumber: 0.10.2<br />
ruby: 1.9.2<br />
OS: W7/64</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Dobrev</title>
		<link>http://www.richardlawrence.info/2010/01/12/debugging-cuke4nuke-step-definitions/comment-page-1/#comment-67</link>
		<dc:creator>Stefan Dobrev</dc:creator>
		<pubDate>Thu, 04 Feb 2010 19:53:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.richardlawrence.info/?p=255#comment-67</guid>
		<description>My bad. You are absolutely right. It does not work. Despite the user defined breakpoint that is created by the call to Debugger.Break() the Cuke4Nuke server continues its execution and exits.</description>
		<content:encoded><![CDATA[<p>My bad. You are absolutely right. It does not work. Despite the user defined breakpoint that is created by the call to Debugger.Break() the Cuke4Nuke server continues its execution and exits.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://www.richardlawrence.info/2010/01/12/debugging-cuke4nuke-step-definitions/comment-page-1/#comment-66</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Wed, 03 Feb 2010 08:18:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.richardlawrence.info/?p=255#comment-66</guid>
		<description>@Stefan - Have you tried this in a Cuke4Nuke step definition? With Cuke4Nuke.Server.exe not having debug symbols and loading step definition assemblies via reflection, I wonder if it will work.</description>
		<content:encoded><![CDATA[<p>@Stefan &#8211; Have you tried this in a Cuke4Nuke step definition? With Cuke4Nuke.Server.exe not having debug symbols and loading step definition assemblies via reflection, I wonder if it will work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Dobrev</title>
		<link>http://www.richardlawrence.info/2010/01/12/debugging-cuke4nuke-step-definitions/comment-page-1/#comment-65</link>
		<dc:creator>Stefan Dobrev</dc:creator>
		<pubDate>Sun, 31 Jan 2010 18:40:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.richardlawrence.info/?p=255#comment-65</guid>
		<description>You can use Debugger.Break() in your .NET code when you want to break and attach a debugger.</description>
		<content:encoded><![CDATA[<p>You can use Debugger.Break() in your .NET code when you want to break and attach a debugger.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Wynne</title>
		<link>http://www.richardlawrence.info/2010/01/12/debugging-cuke4nuke-step-definitions/comment-page-1/#comment-64</link>
		<dc:creator>Matt Wynne</dc:creator>
		<pubDate>Thu, 14 Jan 2010 07:13:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.richardlawrence.info/?p=255#comment-64</guid>
		<description>Neat trick Richard!

I think the way to build debugging into Cuke4Nuke would be to use the /DebugExe command-line switch for of VS: http://www.olegsych.com/2007/08/debugexe-command-line-switch-in-visual-studio/</description>
		<content:encoded><![CDATA[<p>Neat trick Richard!</p>
<p>I think the way to build debugging into Cuke4Nuke would be to use the /DebugExe command-line switch for of VS: <a href="http://www.olegsych.com/2007/08/debugexe-command-line-switch-in-visual-studio/" rel="nofollow">http://www.olegsych.com/2007/08/debugexe-command-line-switch-in-visual-studio/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aslak Hellesøy</title>
		<link>http://www.richardlawrence.info/2010/01/12/debugging-cuke4nuke-step-definitions/comment-page-1/#comment-63</link>
		<dc:creator>Aslak Hellesøy</dc:creator>
		<pubDate>Thu, 14 Jan 2010 00:21:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.richardlawrence.info/?p=255#comment-63</guid>
		<description>I love this idea. The exact same approach can be taken with Cuke4Duke. I have linked to your article from here:

http://wiki.github.com/aslakhellesoy/cuke4duke/debug-cuke4duke-steps</description>
		<content:encoded><![CDATA[<p>I love this idea. The exact same approach can be taken with Cuke4Duke. I have linked to your article from here:</p>
<p><a href="http://wiki.github.com/aslakhellesoy/cuke4duke/debug-cuke4duke-steps" rel="nofollow">http://wiki.github.com/aslakhellesoy/cuke4duke/debug-cuke4duke-steps</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://www.richardlawrence.info/2010/01/12/debugging-cuke4nuke-step-definitions/comment-page-1/#comment-62</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Wed, 13 Jan 2010 17:28:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.richardlawrence.info/?p=255#comment-62</guid>
		<description>@Luke - Good idea. I think debugging support should be built into Cuke4Nuke somehow, but I&#039;m not sure exactly how. Right now, I don&#039;t ship symbols in the gem, so just giving time to attach to the debugger only solves half the problem.

If you come up with a good debugging solution, I&#039;d be glad to pull it.</description>
		<content:encoded><![CDATA[<p>@Luke &#8211; Good idea. I think debugging support should be built into Cuke4Nuke somehow, but I&#8217;m not sure exactly how. Right now, I don&#8217;t ship symbols in the gem, so just giving time to attach to the debugger only solves half the problem.</p>
<p>If you come up with a good debugging solution, I&#8217;d be glad to pull it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luke Smith</title>
		<link>http://www.richardlawrence.info/2010/01/12/debugging-cuke4nuke-step-definitions/comment-page-1/#comment-61</link>
		<dc:creator>Luke Smith</dc:creator>
		<pubDate>Wed, 13 Jan 2010 13:25:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.richardlawrence.info/?p=255#comment-61</guid>
		<description>I&#039;ve debugged tests with Cuke4Nuke by running Cuke4Nuke via Visual Studio. In the Server project settings I added the relevant command line arguments (in the Debug tab). F5 the server, then run cucumber separately. It&#039;s fiddly since you have to find the right place to step into your test code. Not really a nice solution :)

Could you add a debug flag to Cuke4Nuke? When it&#039;s present it won&#039;t run cucumber until some user action in the console. This would give time to attach a debugger to the process. What do you think? Seems like a slightly less hacky approach. I might give it a go one evening this week.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve debugged tests with Cuke4Nuke by running Cuke4Nuke via Visual Studio. In the Server project settings I added the relevant command line arguments (in the Debug tab). F5 the server, then run cucumber separately. It&#8217;s fiddly since you have to find the right place to step into your test code. Not really a nice solution <img src='http://www.richardlawrence.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Could you add a debug flag to Cuke4Nuke? When it&#8217;s present it won&#8217;t run cucumber until some user action in the console. This would give time to attach a debugger to the process. What do you think? Seems like a slightly less hacky approach. I might give it a go one evening this week.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Declan Whelan</title>
		<link>http://www.richardlawrence.info/2010/01/12/debugging-cuke4nuke-step-definitions/comment-page-1/#comment-60</link>
		<dc:creator>Declan Whelan</dc:creator>
		<pubDate>Wed, 13 Jan 2010 03:03:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.richardlawrence.info/?p=255#comment-60</guid>
		<description>Very clever!</description>
		<content:encoded><![CDATA[<p>Very clever!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

