How do I run NUnit in debug mode from Visual Studio?

When I need to debug my NUnit tests, I simply attach to the NUnit GUI application nunit-agent.exe using “Debug|Attach to Process” and run the tests from the GUI. Any breakpoints in my tests (or the code they’re testing) are hit. Am I misunderstanding your question, or will that work for you?

Leave a Comment