Click to See Complete Forum and Search --> : Breakpoint Issues


Zeb
February 24th, 2005, 06:12 PM
I'm trying to debug an app at the moment and getting some real wierd stuff happenning with the debugger. If I put the debugger on a line of code, then hit F5, the program compiles, then a question mark appears on the breakpoint for a good 1/4 of a second, then the breakpoint does wierd things like:
- moves down a line (even if the next line is blank)
- only highlights some of the line
- execution doesn't stop when it should.

If I step through the program, similar things happen - i.e. the program steps into blank lines, jumps weirdly, and only highlights part of the line

Now, I've done some searching and found the following:
- this can happen if you have multiple projects in a solution and files with the same name in each project (i.e. 2 class1.cs files)
- you don't have certain settings set in IIS (which I assure you have been).

So why is this happening! I gather it has something to do with the debugger thinking it is looking at different code - so it hightlights the line it thinks is right, which just happens to be the wrong line in the editor.

I have to get this fixed. The person who maintains this app left for holidays yesterday and i've been given the job of getting it working by today! I'm sure you understand that figuring out why someone elses code doesn't work when you don't have a debugger is not very nice (possible, but not nice!)

jcmorin
February 24th, 2005, 06:52 PM
If your project in a single project? Or multiple?

If you have multiple project make sure that the reference are "project" and not path.

If you check that or use a single project and still get that, check for deleting temporary files (I've got that type of problem many times).

Close you visual studio
C:\Documents and Settings\[NT account name]\VSWebCache\[Machine name]

Delete the entire folder, this is temporary stuff.

Hope that help.

--------------------------
Jean-Claude Morin, MCP
Software Developer
2k1Soft/kCentric, Canada

Zeb
February 24th, 2005, 07:14 PM
Thanks for the suggestions, but...

only 1 project in the solution, so i don't think that's it. I checked anyway, but couldn't find a "references" or anything resembling it...

tried what you suggested with deleting the temp folders, and that didn't work.

thanks anyway! any more ideas? I keep trying different things and just keep on getting angrier!