Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

The breakpoint will not currently be hit. No executable code is associ

Status
Not open for further replies.

onedizzydevil

Programmer
Mar 24, 2001
103
US
When I set a breakpoint point on ONE specific page in a my application ALL my breakpoints on that page, when ran in debug mode, comes up with a question mark inside the circle. When I click on the properties of that breakpoint is has the following error:

"The breakpoint will not currently be hit. No executable code is associated with this line."

However, I am loading a DropDownList from the one of the lines of code I am debugging and the DropDownList gets populated normally no problems but it will not allow me to set a working breakpoint on that line, or ANY line.

We have "rolled" back the page to the state at which it last work but, I still get the same problem. The page is really massive in nature (it contain about 70% of the total application) and it is just not feasible to delete and start again or to attempt to cut and paste we figure out what caused this problem? Will the error not happen again if we cut and paste?

Does anyone know why the breakpoints are screwing up? OR, has anyone ever cut and pasted and new page after this has happened and got it to work without the error returning?

Thanks

Wayne Sellars

"Programming, today is a race between software developers, striving to build bigger and better idiot-proof programs, and the Universe, trying to produce bigger and better idiots. So far, Universe 1 - Programmers 0."
 
Okay, I was thought of this while I typing the above and when I tested it worked.

Rename the file and it works. Rename it back to the original name, it does not work.

Somewhere it has made some sort of notation that provides that code from working.

So I have a work around, BUT does anyone know what the real fix would be for this? I should be able to fix this with renaming or deleting anything. Wayne Sellars

"Programming, today is a race between software developers, striving to build bigger and better idiot-proof programs, and the Universe, trying to produce bigger and better idiots. So far, Universe 1 - Programmers 0."
 
You will run into the ? inside of a circle when your page has been compiled in release mode. Release mode doesn't include the symbols and markings - definition I found - that are required for debugging.

In VS or possibly in your code itself since it is only for this one page there will be some code that defines which mode to compile in.

Make sure that the option in VS says debug and not release. This is found in a drop down right beside the run button.

HTH That'l do donkey, that'l do
[bravo] Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top