Visual Studio 2010, Visual Basic 10, debugger not running - vb.net

I have Visual Basic 10 program written in Visual Studio 10. For most of my development I would hit the play button and it would build and run. Suddenly, with no major changes to the program, it stopped running. I can hit the play button and it builds, but it doesn't run, and it doesn't show any error messages. I can run the .exe file and it works fine, and I can also use CTRL + F5 and it works. How can I "fix" the debugger?
Summary:
VB10 in VS2010
can code fine
hit play button (F5) and builds with no errors
.exe file works (CTRL + F5 also works)
using play button, program never starts
Thanks for the answers!

Related

Visual Studio 2022 Debugger thinks I changed code and wants to hot reload

EDIT: Good information provided below to diagnose, but the issue was I was running Visual Studio 2022 17.3. Version 17.4 is required for .NET 7, and I had just installed that. Once I installed the latest version of VS, all my problems went away. Install with Visual Studio
Suddenly today, debugging my ASP.NET Core 6 and 7 apps suddenly has stopped working. I hit F5 to debug, it stops on my breakpoint, but as soon as I continue or step into, I'm shown this dialog:
I haven't made any changes to code, I'm simply trying to continue after I've stopped at a breakpoint. This just started happening today and I can't figure out what I did.
I haven't made any changes to code, I'm simply trying to continue
after I've stopped at a breakpoint. This just started happening today
and I can't figure out what I did.
Well, if your visual studio stop working for debugging all type of application, please check following configuration:
1. Tools > Options > Debugging > .NET/C++ Hot Reload
2. Tools > Options > Projects and Solutions > ASP.NET Core >
Furthermore, If you select the Always rebuild option in the dialog box, you won't see the dialog box again in the current Visual Studio session, and Visual Studio will automatically rebuild and reload instead of showing the dialog box.
Note:
In addition, as you can see above in the first release of Visual Studio (version 17.0) the standard Edit and Continue dialog is still shown when using Hot Reload with the debugger. This was a bug and has been resolved starting with 17.1 Preview 2 release.
If you still need more details about the issue you are having with, I would higly recommend you to check our official document here.
If issue still perist:
After checking above configuration, if your issue still persists and if you are not using Visual Studio (version 17.0) then you still reset your unknown setting in visual studio as following:
Go to Tools > Import and Export Settings.
Then No, just reset settings
Finally, restart Visual studio.
You can get more details here.

Visual studio code editor doesn't open when I click on it

Tried shutting down my laptop, a windows 7 os on Sunday afternoon. Then I got a notification telling me that a program was still running, forced the system to shut down because I was in a rush. Then on Monday morning, I powered up my system and tried opening visual studio code editor by clicking on the shortcut on the desktop. When I click, the loading circle spins for some seconds then stops. Nothing else happens. It doesn't open. Did this several times. I have uninstalled and installed visual studio code 4 times,but it's still the same thing. Even after downloading and installing its meant to open / run automatically, but instead it doesn't. Please what can I do? This is really frustrating.

Visual Studio Application not killed properly

When I run an application in Debug mode in Visual Studio and close it, the application does not get killed as expected. The window closes successfully but the process keeps on running in the background.
As a result, when I try to launch the application again, Visual Studio gives me an error stating that .dll is being used by another process.
What could be the issue?

Tell the add-in to open Visual Studio and jump to debug mode on a certain line of code?

I have created a COM add-in for Excel.
I know that I can enter debug points into my code and then choose to "play" my code from Visual Studio. When a debug point is hit, execution stops and I enter debug mode.
But is it possible to create debug points that cause execution to stop and debug mode to start when I am not running my code via "play" in visual studio but just opening an Excel file as normal?
You can attach the debugger after you run Excel manually outside of Visual Studio. See Attach to Running Processes with the Visual Studio Debugger and How to: Attach to a Running Process for more information.

Stop executing code

I am compiling and running code at runtime. Can I stop this code midway through if I wish? Like the 'stop' feature in Visual Studio that stops the code if desired?
You can, if you attach the Visual Studio debugger to the running process.
Load the solution that produced the application into Visual Studio
Run your application outside of Visual Studio
Choose Debug -> Attach to process... from the Visual Studio menu
Select your application in the process list
Click Attach
You should now be able to use the normal debugging controls to pause execution of your application, step through code, etc.
Yes, it's called the task manager (find your process and kill it). Or if you're in a console window, just use Ctrl+C.