Click here to Skip to main content
6,629,377 members and growing! (21,847 online)
Email Password   helpLost your password?
General Programming » Programming Tips » Testing and Quality Assurance     Beginner License: The Code Project Open License (CPOL)

Attach Debugger to NUnit using Macro

By ntr9h

Saves you some mouse clicks when debugging NUnit GUI
C# (C# 2.0).NET 2.0VS2005, Dev
Posted:4 Jul 2008
Views:6,910
Bookmarked:9 times
Announcements
Loading...
 
Search    
Advanced Search
Add to IE Search
printPrint   add Share
      Discuss Discuss   Broken Article?Report  
5 votes for this article.
Popularity: 3.15 Rating: 4.50 out of 5

1

2
1 vote, 20.0%
3

4
4 votes, 80.0%
5

Introduction

If you have ever felt bored of wasting time opening Debug -> Attach of Visual Studio to attach to NUnit GUI application for debugging, then this macro is for you.

Background

No background is required.

Using the Code

First, download MsacroAttachNUnit.zip and extract the file Debug.vb inside this zip to your local drive.

Next, open Macros IDE by either going to menu Tools -> Macros -> Macros IDE or pressing Alt + F11.

After the IDE is open, in its Project Explorer Windows, right click on MyMacros and choose Add -> Add Existing Item. Then point the file browser to file Debug.vb.

Now, close the Macros IDE and open the Macros Explorer by either going to menu Tools -> Macros -> Macro Explorer or pressing Alt + F8. There is a macro named DebugNunit under MyMacros.Debug.

From now on, you can run the macro by double clicking on it in Macro Explorer to attach to NUnit GUI application. In order to make life a little bit easier, we can create a toolbar button for this macro. All the things you need to do is right click on your toolbar and choose Customize, then browse to command MyMacros.Debug.DebugNunit as in the figure shown below:

MacroAttachNUnit

Drag the command to anywhere most suitable for you and forget about all macro things. Just click the button whenever you want to attach to NUnit GUI for debugging.

Points of Interest

There are no points of interest except trying to find some "solution" for your laziness:-).

History

  • 5th July, 2008: Initial post

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

ntr9h


Member

Occupation: Software Developer (Senior)
Location: Vietnam Vietnam

Other popular Programming Tips articles:

Article Top
You must Sign In to use this message board.
FAQ FAQ 
 
Noise Tolerance  Layout  Per page   
 Msgs 1 to 6 of 6 (Total in Forum: 6) (Refresh)FirstPrevNext
GeneralThank you! PinmemberDrMcClelland8:08 2 Jul '09  
GeneralRe: Thank you! Pinmemberntr9h18:04 2 Jul '09  
GeneralError PinmemberHariPriya11:22 24 Apr '09  
GeneralRe: Error Pinmemberntr9h0:24 27 Apr '09  
GeneralCan't you just set debug to run NUnit? PinmemberMember 218767817:45 8 Jul '08  
GeneralRe: Can't you just set debug to run NUnit? Pinmemberntr9h21:28 8 Jul '08  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

PermaLink | Privacy | Terms of Use
Last Updated: 4 Jul 2008
Editor: Deeksha Shenoy
Copyright 2008 by ntr9h
Everything else Copyright © CodeProject, 1999-2009
Web10 | Advertise on the Code Project