Ask a questionAsk a question
 

Answervisual studio debug

  • Thursday, November 05, 2009 11:41 PMdavejp112175 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hello,

    In Visual Studio 2008 using C#, I had a working project yesturday. Made some changes. Went to debug and what starts running is the project without the changes. If I build a release version, or start the project fvrom VS with debugging, the changes are there. When I go to debug the cahnges I made today are gone. There are no compilation errors and no exceptions occuring that I know of..

    Any ideas?

    -_David P

Answers

  • Friday, November 13, 2009 8:21 PMdavejp112175 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    The solution was to delete the .exe file created by the debugger... when I re-started the project using the debugger after the delete, all the changes where there. It simply was not re-compiling the .exe file with my changes. Don't know why, but the problem hasn't re-surfaced since.

    Thanks for your suggestions,

    -David P

All Replies

  • Thursday, November 05, 2009 11:42 PMdavejp112175 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I meant start the project from VS WITHOUT DEBUGGING.... the changes are there..
  • Friday, November 13, 2009 7:53 AMeryangMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi,
    It is strange, are you using any version control software, such as TFS? try to close all VS instances and restart VS, and rebuild your application before debugging.

    Thanks,
    Eric
    Please remember to mark helpful replies as answers and unmark them if they provide no help.
  • Friday, November 13, 2009 8:21 PMdavejp112175 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    The solution was to delete the .exe file created by the debugger... when I re-started the project using the debugger after the delete, all the changes where there. It simply was not re-compiling the .exe file with my changes. Don't know why, but the problem hasn't re-surfaced since.

    Thanks for your suggestions,

    -David P