Click here to Skip to main content
15,888,521 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
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
Comments
[no name] 23-Mar-13 9:31am    
Did you rebuild all?
nv3 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?
Leo Chapiro 23-Mar-13 10:28am    
Let us see the code where it occures please.

1 solution

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
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900