It is currently Wed Feb 08, 2012 11:34 pm



Welcome
Welcome to RHAPSODY4YOU

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, respond to polls, upload and download content, and access many other special features. Registration is fast, simple, and absolutely free, so please, register to join our community today.





 Page 1 of 1 [ 2 posts ] 
Author Message
 Post subject: Debugging Code Tests
PostPosted: Mon Jun 21, 2010 1:51 pm 

Joined: Mon Jun 21, 2010 1:21 pm
Posts: 1
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?


Offline
 Profile  
 
 Post subject: Re: Debugging Code Tests
PostPosted: Thu Jun 24, 2010 7:53 am 

Joined: Mon Jan 25, 2010 11:40 am
Posts: 12
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();


Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 2 posts ] 


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:


suspicion-preferred