CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8

Thread: Debugging

  1. #1
    Join Date
    Jan 2000
    Location
    Olen, Belgium
    Posts
    2,477

    Question Debugging

    When debugging a VB.Net application in the IDE, I can't change the code when I'm in break mode. Is this supposed to be so? This means that whenever you need to change like say 1 or 2 characters, you need to stop the application, modify the code and restart the code. This is really irritating when trying to debug a piece of code that takes two minutes to come to the point where I need to debug.

    This is costing me a lot of time (an patience).

    Must I place this in the list of nice things we had in VB6, but not in VB.Net?
    Tom Cannaerts
    email: [email protected]
    www.tom.be (dutch site)

  2. #2
    Join Date
    Aug 2000
    Location
    NY, USA
    Posts
    632

    Red face

    It bothers me too much too. But I think this it one part of the price we have to pay for all advantages. Unlike in VB6 we are running compiled EXE. Have you paid attention if you have a problem with your code you can still run your app but it doesn't have any changes you made since last successful run
    Vlad

  3. #3
    Join Date
    May 2000
    Location
    New York, NY, USA
    Posts
    2,878

    Re: Debugging

    Originally posted by Cakkie
    When debugging a VB.Net application in the IDE, I can't change the code when I'm in break mode. Is this supposed to be so?
    Yes it is. It's a "new" feature of VB.NET
    Iouri Boutchkine
    [email protected]

  4. #4
    Join Date
    Jan 2000
    Location
    Olen, Belgium
    Posts
    2,477

    Re: Re: Debugging

    Originally posted by Iouri


    Yes it is. It's a "new" feature of VB.NET
    Hmm, one of those "you call it a bug, we call it a feature" things. Oh well, I guess we'll just have to live with that...
    Tom Cannaerts
    email: [email protected]
    www.tom.be (dutch site)

  5. #5
    Join Date
    Mar 2000
    Location
    Arizona, USA
    Posts
    493
    You can set whether or not you can edit the source while in debug mode.
    Go to the Tools menu and selct Options.
    Then open the Debugging folder and select the Edit And Continue option.
    There will be a check box labeled "Allow me to edit VB files while debugging"
    Check it and see how that works. I have yet to try it but it may be what your looking for
    Kris
    Software Engineer
    Phoenix, AZ USA

  6. #6
    Join Date
    Jan 2000
    Location
    Olen, Belgium
    Posts
    2,477
    I haven't tried this yet, but it sounds really good. I'll try it as soon as I get home., Thanx
    Tom Cannaerts
    email: [email protected]
    www.tom.be (dutch site)

  7. #7
    Join Date
    Aug 2000
    Posts
    37

    Its work

    but its cost a little memory resource I think.
    (not something u can't handle)

  8. #8
    Join Date
    Feb 2001
    Location
    Stamford CT USA
    Posts
    2,167
    Editing while in break mode "feature" was only added in 2003 version. Even then it does not work as VB6 since you have to actually restart the debugging process to incorporate your changes. Like softweng mentioned, it has something to do with running the EXE instead of interpreting the code

    -Cool Bizs

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured