Results 1 to 7 of 7

Thread: Debugging

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2021
    Location
    Denmark
    Posts
    14

    Debugging

    I cannot debug my code! I start Debug on the menu and the program appears to run through to my breakpoint. It does not seem to show me that it is at the breakpoint. If I look in the Debug menu, Step Into, Step Over and Step Out are all greyed out, so I cannot see how to proceed. If I point to a variable in my code, it just shows me the variable characteristics. It does not show the value of the variable. I have removed Visual Basic from my computer, and re-installed it. In 25 years of using VB, I have never had this problem before and I cannot find a solution. Help would be appreciated.

  2. #2
    Fanatic Member
    Join Date
    Jul 2022
    Location
    Buford, Ga USA
    Posts
    630

    Re: Debugging

    Is VS up to date?

    A silly question, how are you starting your application to debug it? F5, CTRL+F5, Clicking the fully filled in play button, or the one that is just outlined? I find sometimes I have to go back to step 1 with even the simplest weirdness (I've be using VB since it became a thing in the early 90s)

    Have you seen this https://learn.microsoft.com/en-us/tr...ng-breakpoints

    You could try to repair visual studio, via visual studio installer, click more and then repair.
    You can reinstall visual studio, but then you do make sure to also use InstallCleanup afterwards (as outlined here https://learn.microsoft.com/en-us/vi...o?view=vs-2022)

  3. #3
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,102

    Re: Debugging

    Also, which version of VS?
    My usual boring signature: Nothing

  4. #4
    PowerPoster
    Join Date
    Nov 2017
    Posts
    3,630

    Re: Debugging

    Do you have your project in "Release" mode rather than "Debug" mode?

  5. #5

    Thread Starter
    New Member
    Join Date
    Apr 2021
    Location
    Denmark
    Posts
    14

    Re: Debugging

    Quote Originally Posted by jdelano View Post
    Is VS up to date?

    A silly question, how are you starting your application to debug it? F5, CTRL+F5, Clicking the fully filled in play button, or the one that is just outlined? I find sometimes I have to go back to step 1 with even the simplest weirdness (I've be using VB since it became a thing in the early 90s)

    Have you seen this https://learn.microsoft.com/en-us/tr...ng-breakpoints

    You could try to repair visual studio, via visual studio installer, click more and then repair.
    You can reinstall visual studio, but then you do make sure to also use InstallCleanup afterwards (as outlined here https://learn.microsoft.com/en-us/vi...o?view=vs-2022)
    Ahh, wo is me! I found out that my program was in a perpetual loop. When I dealt with this, the problem went away. I am very sorry to use some of your valuable time.

  6. #6
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Posts
    12,370

    Re: Debugging

    Quote Originally Posted by OptionBase1 View Post
    Do you have your project in "Release" mode rather than "Debug" mode?
    This has gotten me more times than I care to admit and was also going to be my first suggestion to check.
    "Code is like humor. When you have to explain it, it is bad." - Cory House
    VbLessons | HtmlLessons | CssLessons | Code Tags | Sword of Fury - Jameram

  7. #7
    Fanatic Member
    Join Date
    Jul 2022
    Location
    Buford, Ga USA
    Posts
    630

    Re: Debugging

    Quote Originally Posted by KeithMcCloy View Post
    Ahh, wo is me! I found out that my program was in a perpetual loop. When I dealt with this, the problem went away. I am very sorry to use some of your valuable time.
    Not at all. These things happen from time to time.

Tags for this Thread

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