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!)
- 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!)