Groups | Blog | Home
all groups > visual studio .net debugging > august 2003 >

visual studio .net debugging : Debugger not working and code changes don't affect compile



Chris
8/22/2003 10:24:37 PM
The strangest thing started happening to me today in
Visual Studio .NET 2003. I make changes to my code and
compile it, but none of my changes are in the compiled
program. The compiled program is stuck on a single
instance of my code (an instance that is not saved
anywhere). I add print lines....nothing. I change
constant values.....nothing. I cannot affect the
compiled program by changing my code. What could
possibly be going on here?

Another issue that may or may not be related, the
debugger no longer works for this project. I did in the
past, but now I get invalid pointers in random
functions. Most of the errors come from member functions
that access an array of the class. Even before the
program gets an exception from a place in code that
normally executes fine, all the values are incorrect.
Values don't usually change when they are set or
arithmetic is performed on them.

Oleg Starodumov
8/26/2003 10:23:25 AM

Some things to check:

* Check if your executable is loaded from an unexpected location,
especially if it is a DLL (use Debug | Modules window to check the path)

* Generate listing file and see what source file is used by the compiler
(the file name and path is given at the beginning of the listing file)
(see /FA compiler option for more details about listings)

Regards,
Oleg

[quoted text, click to view]

AddThis Social Bookmark Button