Click here to Skip to main content
13,046,480 members (72,823 online)
Rate this:
Please Sign up or sign in to 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?

Vaibhav Jaiswal
Posted 23-Mar-13 2:46am
ThePhantomUpvoter 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?
du[DE] 23-Mar-13 10:28am
Let us see the code where it occures please.

1 solution

Rate this: bad
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

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 23 Mar 2013
Copyright © CodeProject, 1999-2017
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