Zurück zu Willert.de

Debugging Code Tests

Debugging Code Tests

Postby Rotorflux » June 21st, 2010, 3:51 pm

I'm writing code texts and I'm wondering if there is some way to debug the code written in the implementation tab. I've heard that you should be able to do this by attaching visual studio to the "test-process".I've played around some to see if I could manage on my own, but fact is I just don't know what I am doing. So does anybody here know how to do it or at least where I can find a description of how to do it?
Rotorflux
 
Posts: 1
Joined: June 21st, 2010, 3:21 pm

Re: Debugging Code Tests

Postby KalleBlaschke » June 24th, 2010, 9:53 am

Hi Rotorflux,

what you can do is the following:

1. Add <crtdbg.h> to the section "Standard Headers" in the settings of your configuration

2. At the beginning of the code test case, add
_CrtDbgBreak();

Now, when executing the test case, the debugger pops up and allows you to start debugging at
_CrtDbgBreak();
KalleBlaschke
 
Posts: 12
Joined: January 25th, 2010, 1:40 pm


Return to TestConductor, ATG, Gateway, ReporterPlus

Who is online

Users browsing this forum: No registered users and 2 guests