Xaqron
Xaqron

Reputation: 30837

Debugging class libraries, Visual Studio automation

I'm debugging a class library which is testing by a demo application. Each time I make a change in code and set a break-point I should:

  1. Compile code
  2. Run demo executable
  3. Attach debugger to demo.exe process

Can I automate these steps in some way ?

Upvotes: 0

Views: 637

Answers (2)

Hans Passant
Hans Passant

Reputation: 941217

Right-click your class library project, Set as Startup Project if necessary. Again, Properties, Debug tab. Select "Start external program" and select your 'demo' program's EXE.

Pressing F5 now automatically starts the demo program with the debugger attached. Don't forget to take advantage of Edit+Continue.

Upvotes: 3

Davita
Davita

Reputation: 9114

You don't need a demo application. Just create unit test for the library. http://msdn.microsoft.com/en-us/library/ms379625(v=vs.80).aspx

Upvotes: 0

Related Questions