I can not edit code while debuggind and in break mode

When I am in break mode, I cannot update code. I receive message "Cannot currently modify this text in the editor. It is read only." Can anyone explain why I get this message

All the Best,

Charlie




Answer this question

I can not edit code while debuggind and in break mode

  • kojot

    I tried running the VB 6 IDE, and it works fine. I wrote a simple program with only a few statements in it, and the debug/edit works on VB6, but not on Visual Studio.

    Charlie



  • Dave Luu

    Ive also started getting this problem in VS2005 for no apparent reason

    I'm Running XP MCE so its not a 64bit OS, so it shouldn't be running 64 bit code

    Edit and continue is enabled and as far as i can tell this code safe thingy isn't enabled either

    Edit and continue used to work, its just stopped for some reason now, and its an utter pain, i tried resetting my configuration but no luck there

    Does anyone have any ideas

    Edit
    I disabled compiling of my setup project and now it works ok, apparently when compiling both, it doesnt like it

  • AaRoN_P

     

    Charlie,

    Go to the Tools/Options dialog, open the Debugging/Edit and Continue  and make sure it is enabled.

    Is your project under source control with Visual SourceSafe   That may be causing a problem if the On Edit in the Source Control settings is not set to Check Out Automatically.

     


  • BRONCOLANE

    spotty wrote:

    Are you using a 64 bit machine - as edit and continue is not available for 64 bit.

    I am having this exact problem, and I am running Windows Vista x64. Thanks for sharing that, I've been pulling my hair out trying to figure this thing out for ages, checking to make sure I enabled everything and all sorts of mucking around. I am beginning to regret making the move to x64 at this stage, have had nothing but problems.


  • John Evdemon

    The debugging/edit option is set. Visual sourcesafe is not used. Is there any other place that the edit/debugging option has to be set that you know of

    All the Best,

    Charlie



  • miker3x

    Hi

    i have thesame problem on one app all works fine on a new app i can not get it to edit code at pause

    I also do not have

    Tools/Options dialog, open the Debugging/Edit and Continue and make sure it is enabled.

    Which is very strange not on either app i am am on VB2005 express on two machines one 64 bit & one 32 bit all the settings are the same but only one app will work


  • Eric Reed

    OK, it's fixed. I had to go to Tools/ Import-Export settings and reset all of my VB settings. This corrected the problem. Thank you all for your help.

    All the Best,

    Charlie



  • fleshi

    No, I am on a 32 bit machine. But I did notice that all of my folders are read only. I tried changing them using the ATTRIB command witih CMD.EXE, but they always revert back to read only. I am running windows XP professional SP2.

  • Tim Erickson

    Let me take a guess

    As you dont say, I would hazard a guess that its the 64 bit machine that doesnt allow edit and continue. This is because 64 bit doesnt support edit and continue.

    I'm not sure if the Express version allows you to specify a specific target which the other versions of VB / VS do - so you can specifically target 32 bit (any CPU) and this then should support Edit and Continue.

    This may provide some clues to the problem.


  • Edmund Leung

    No, I am not debugging a web project. I place a break point in the code, and when I hit the break point I should be able to edit code. I cannot. I get a message on the lower portion of the screen saying "Cannot currently modify this text in the editor. It is read only." I don't know why I'm getting themessage, but it is driving me nuts.... Any help you can provide would be appreciated.

    All the Best,

    Charlie



  • Frank Potter

    What version of Visual Studio are you using.

    VB6 is a completely different generation of software to Visual Basic .NET

    Edit and continue disappeared from VB.NET in versions prior to 2005 when it made its reappearance.


  • Robin Speed

    Are you using a 64 bit machine - as edit and continue is not available for 64 bit.


  • Brendan Comerford

    In VisualStudio 2005, Edit & Continue is back, so in many cases you are able to edit the source code.

    Things that may cause this to happen include:

    - You attached to the process (didn't start it from within Visual Studio)
    - You have disabled Edit & Continue (Tools->Options->Debugging->Edit and Continue)

    Are you debugging a Web project

    Best regards,
    Johan Stenberg



  • osfa

    thanx to all for giving these valuable information.

  • I can not edit code while debuggind and in break mode