problem in debugging with Microsoft VC++ .net Ver 7.0

B

Bhawna

Hi,

I am struggling with an issue related to debugging code in
VC++ .net Ver 7.0, for last 2-3 days without any notion for what is
happening. Actually I have made some changes to my source code and
after that I rebuilt
the solution. Now when I debug the code the control flows at wrong
places and even goes over the commented out lines.

I have already tried cleaning all the existing stuff before rebuilt.


Any help in regard will be highly appreciated.

Thanks and Regards
Bhawna
 
D

David Lowndes

I am struggling with an issue related to debugging code in
VC++ .net Ver 7.0, for last 2-3 days without any notion for what is
happening. Actually I have made some changes to my source code and
after that I rebuilt
the solution. Now when I debug the code the control flows at wrong
places and even goes over the commented out lines.

I can only guess that you're either:

1. Not debugging what you think you are (mismatching source code), or:
2. Debugging an optimised (release) build.

Dave
 
B

Brian Muth

To add to David's answer, you might find it helpful to explicitly delete the *.pcb file in your build directory, just to make sure a
fresh one is being created.

Brian
 
B

Bhawna

To add to David's answer, you might find it helpful to explicitly delete the *.pcb file in your build directory, just to make sure a
fresh one is being created.

Brian

Hi,

Thanks for your prompt response. Actually, I am debugging correct
source code and when control moves it even goes on commented out line.
I am using debug version only and I have already deleted .pdb file (I
hope you had meant .pdb rather than .pcb in your reply).

Please let me know if someone has any clue about what the issue could
be.

Thanks and Regards
Bhawna
 
B

Ben Voigt [C++ MVP]

Bhawna said:
Hi,

Thanks for your prompt response. Actually, I am debugging correct
source code and when control moves it even goes on commented out line.
I am using debug version only and I have already deleted .pdb file (I
hope you had meant .pdb rather than .pcb in your reply).

The debug data is in the .pdb

The .pcb, which contains browse data, shouldn't cause the issues you're
having, but it should be deleted and rebuilt periodically as well, and a
"full rebuild" won't do that, it must be deleted by hand.
 
B

Brian Muth

I hope you had meant .pdb rather than .pcb in your reply).

That's correct. My bad.

Brian
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top