edit and continue

I can't seem to enable edit and continue in my VB 2005 app. Everyone seems to be pointing to Tools--> Options--> Debugging, but I don't have a debugging menu in my Tools--> Options.

Any help would be appreciated.

Thanks,

Danny



Answer this question

edit and continue

  • Marco

    OK, so I found the debugging menu, and edit and continue IS enabled. But when I try to use it I get: "cannot currently modify this text in the editor. It is read-only"

    Any thoughts.

    -Danny


  • SusanS

    We use sourcesafe and the files are checked out of sourcesafe.

    If they were readonly I wouldn't be able to edit them in development mode either.


  • Snortblt

    The execution is definitely paused and it is definitely not in release mode. Any more ideas


  • ProTurbo

    Some things can be edited and some things can't. What exactly are you trying to edit



  • Boatman

    To enable your debugging tools try
    Tools > Options > Projects and Solutions > General
    and check 'Show advanced build configurations'.

    The problem you have with edit and continue could be solved like this.
    1. Ensure you have a debugging output.
    2. 'right click on your Project and choose Properties' > Compile > Advanced Compile Options > and uncheck 'Enable optimizations.


    Hope it helps. Happy coding,
    rootschopf


  • manishvasani

    I cannot be certain but I would wager that execution isn't actually paused at that point. You can only edit code white the program is paused. It may also be that your solution is in Release configuration which wouldn't have breakpoints. Just my guess.

  • fsa

    Sometimes you can only edit while debugging if an error occurs. You can then edit the line the error occured on to try and fix it. There should be no reason to edit unless an error has occured.


  • singam

    It was a good try because my "Enable optimizations" was checked, but it still does not allow me to edit code while debugging.

    Any more ideas


  • SanG_123

    Just to be clear, when you say you 'can't edit', you mean that you physically cannot make a change to the file in the IDE, or when you continue it says you can't apply the edit and will need to restart

    (From your read-only comment, it's the former). If so, is it on all files in the project Did you start a brand new project Does it have the same problem



  • eteq

    Not sure if it's relevant but ASP.NET Web-Applications do not support edit & continue in the traditional sense, to my knowledge. If you're making aspx code behind then that would explain the changes not applying.

  • myost21

    No it's a windows application
  • Bill Crunk

    Yes, it's when I'm at a breakpoint in code I cannot make a change ot the file in the ide. It seams to be all files in the solutions.
  • snuffbaeten

    Just a regular .vb 2005 file during debug mode. I know that in my C# project it works fine.
  • Geckex

    Explorer: Rightclick the file > Properties > uncheck Read-only.

    If you work with some source control system, normally all your files will be flagged as 'Read-only' unless you lock them or check them out.

  • edit and continue