Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VC6 VS2005 C++ VC++ Debugger
I'm using VS2005 and am unable to set a break-point those areas where I have added some new code. When I hover over the break-point I get:
 
"The break-point will not currently be hit. Invalid file line : nnnn"
 
If I move the break-point down in the body or in olde code it sets. I've moved the body of the function around and no difference. All other functions have no problem setting breakpoints.
Has anyone seen this and is there a fix?
 
Thanks,
Vaibhav Jaiswal
Posted 23-Mar-13 3:46am
Comments
ThePhantomUpvoter at 23-Mar-13 9:31am
   
Did you rebuild all?
nv3 at 23-Mar-13 9:40am
   
Are you sure the breakpoint is in a part of code that is not exclude by a pre-processor statement, like #if ...? And is it in a section of code that can be reached at all?
du[DE] at 23-Mar-13 10:28am
   
Let us see the code where it occures please.

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Whenever you have a new piece of code added to the existing code that you are debugging, First thing is you should build the Solution once again and continue to debug.
 
In case if you are debugging a exe that is running from a different location than that of your Project Folder,
 
For exampe: C:\program files\test\test.exe is the one you are debugging from your project, You should replace the test.exe with the exe that is got out of the newly build project. Now you can attach the process to the VSDebugger and proceed
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 304
1 Sergey Alexandrovich Kryukov 255
2 Maciej Los 250
3 Shweta N Mishra 216
4 PIEBALDconsult 174
0 OriginalGriff 7,660
1 Sergey Alexandrovich Kryukov 7,072
2 DamithSL 5,586
3 Manas Bhardwaj 4,946
4 Maciej Los 4,665


Advertise | Privacy | Mobile
Web02 | 2.8.1411023.1 | Last Updated 23 Mar 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100