|
-
Oct 6th, 2024, 03:01 AM
#1
Thread Starter
New Member
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.
-
Oct 6th, 2024, 04:25 AM
#2
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)
-
Oct 6th, 2024, 10:50 AM
#3
Re: Debugging
Also, which version of VS?
My usual boring signature: Nothing
 
-
Oct 6th, 2024, 11:11 AM
#4
Re: Debugging
Do you have your project in "Release" mode rather than "Debug" mode?
-
Oct 7th, 2024, 05:32 AM
#5
Thread Starter
New Member
Re: Debugging
 Originally Posted by jdelano
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.
-
Oct 7th, 2024, 08:01 AM
#6
Re: Debugging
 Originally Posted by OptionBase1
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.
-
Oct 7th, 2024, 09:55 AM
#7
Re: Debugging
 Originally Posted by KeithMcCloy
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|