Attach to the NUnit Process

Visual Studio can attach to a running process and debug it. At this writing, I have no idea how this works, but I can tell you how to make it do something you might want. Start the NUnit GUI if it isnt already running. Select the Visual Studio menu item Debug/Processes. This will bring up a Processes window:

click to expand

Scroll to find nunit-gui.exe, click it, and press Attach. This will bring up a window that looks like this:

click to expand

Select Common Language Runtime (at least), press OK, and close the Debug Processes window. Now you can set a breakpoint in Visual Studio, go to the NUnit GUI, run a test, and, badda-bing badda-boom, youre at your breakpoint.

Using this technique, if you rebuild your app, the connection to the NUnit process is broken, so youll have to reset it.

Extreme Programming Adventures in C#
Javaв„ў EE 5 Tutorial, The (3rd Edition)
ISBN: 735619492
EAN: 2147483647
Year: 2006
Pages: 291 © 2008-2017.
If you may any questions please contact us: