Debug mode of Visual Studio 2010 is not running well - c#

I've problem in my Visual Studio 2010 Ultimate version. When I push play button on my project and the browser (IE) is appear and suddenly the play button is not gray out and in a debug mode position. It's back to normal mode as I'm not pressing the button play yet. Please help and advice the solution. Attached image for the illustration.
Thanks in advance.
http://i.stack.imgur.com/0XPJM.png

something makes your program exit.
perhaps exception.
start debugging using F11 (step into).
and and go slowly until you find the reason.
also you can use
Visual Studio: How to break on handled exceptions?

Related

I just can't get the Visual Studio for Mac debugging to work (the option is greyed out)

no idea what I'm doing wrong here. I have two macs at home, one is mine, one is a work laptop. I have VS 2022 Preview installed on both, and .net 6 on both. On my home mac, if I start a new c# Console app I'm able to just stick a break point on the (single) Console.Writeline line, hit debug, and it stops on that line as you'd expect.
On my work mac, breakpoints just turn hollow immediately, and debugging the code just runs the code instead. The "Start Debugging" option is just greyed out in the menu bar. I've tried a bunch of things but I just can't work out why this isn't working!
I had the same issue and all the other solutions I found did not work for me with VS 2022 (v17.0.6), dotnet6.
It appears it is an IDE Issue and hopefully gets fixed soon. Installing Visual Studio 2019 seems to solve it. Credit here: Visual Studio For Mac 2022 - Cannot execute "{...}.exe".
Out of curiosity, the following appears too 'reset' it back to normal.
Set a breakpoint in your code (mine was hollow when doing so)
Select 'Visual Studio' -> 'Quit'
Re-open your solution and navigate back to your breakpoint
But after selecting "Start Debugging" option, it returns back to its previous state of no debugging.
I have had the same problem.
The extension ".Net Core Debugger" was disabled and therefore I was not able to debug projects.
Go to Visual Studio -> Extensions -> Installed and check the state

Moving breakpoint in middle of debug session with VSCode

I am from Visual Studio land mostly working with C# applications. Recently switched to VSCode and it has been a . good experience so far. However, I miss a particular feature from that Visual studio has but I don't VsCode does have or at least I do not know how to.
With Visual Studio, I could move control from where it currently is to any previous position by physically clicking it and dragging it to a previous position. However, I do not seem to have that option with Visual Studio Code. Is there any way for me to enable that feature in VS Code for C#?
I believe still an open issue.
https://github.com/Microsoft/vscode-cpptools/issues/1025

Stopping Continues Testing recompilation stealing cursor in Visual Studios 2017 and Resharper

I have just started out on my journey to learn TDD with C# and to help me I have started using Reshaper 2017.1.3 Continues Testing tool to re-run all my tests that are affected by my modifications upon saving. I was hoping this would be a seamless experience with no interruptions to development but every time the projects need to be recompiled the cursor is stolen from the editor and placed inside the Output Pane which leads to a halt in development.
Is there any way to stop this behaviour without having to sacrifice the convince of the Continues Testing tool?
This might be Visual Studio behaviour - try unchecking the "Show output window when build starts" option in Tools → Options → Projects and Solutions → General.
If this doesn't help, please report an issue: youtrack.jetbrains.com
In my case I wanted to keep the focus in the editor after running my program and this solution is still available in 2021 for Visual Studio 2019.
Here is a screenshot for Visual Studio in French:

Visual Studio 2015 not working after first successful debug

I have updated Visual Studio 2015 to the first update. Since then I cannot debug my code twice in a row. It goes like this:
I start VS and try to debug. So far OK
Change code, build and debug.
Try to reach a web but it never loads.
If I close the VS and load the solution again it works or If I do not change code in step 2.
Other thing I noticed is the IIS Express Worker process is consuming most of CPU time.
And apparently the symbols are not loaded (I do not see the messages of DLL loading in the status bar).
This is making my development process very slow and tedious.
The solution is a MVC project under 4.6.1 framework.
Any ideas? Thank you very much!!
You should boot Visual Studio into Safe Mode. To enter safe mode do the following:
Open Command Prompt, as Administrator.
Enter: cd C:\Program Files (x86)\Microsoft Visual Studio 14.0
Enter devenv.exe /safemode
If Visual Studio does load and debug, then more than likely an extension or an update is the culprit. This will allow you to also see which updates may have occurred. The other potential issue would be if your Internet Information System had an issue.
Otherwise if your Internet Information System is stuck 'on'.
CTRL + ALT + DELETE
Go to processes, end W3P process.
Try to launch and debug inside Visual Studio.
Otherwise, simply try restarting your computer. We would need more information, as this can occur for an assortment of reasons.
#Julen - I have the same issue as you and I have found a work-around.
Add the "Terminate all" button to your toolbar and use it instead of just stopping the debugging. This command kills the IIS Express process.
See how to add it here:
Automatically Kill IIS Express Process After Debugging (VS Express 2013 Web)
If your IIS doesn't shut down after stopping the debugger, you could do one of the tricks written in this blog post - but the opposite way because the article focuses on keeping the debugger on.
Here is the proposed solution 2 - to check "Enable Edit and Continue":
Similar to VS 2013, if you disable Edit and Continue IIS Express will continue to run when you stop your debug sessions.
Open the menu item Tools/Options, look for the Debugging/General option. Scroll down and uncheck “Enable Edit and Continue”
It might be hanging when trying to load external symbols. I had a problem with that before.
To test this theory:
Open the Tools menu.
Click 'Options'.
Find and expand 'Debugging' on the left.
In the 'Symbol file (.pdb) locations' list, uncheck everything.
Click OK and see if the problem reappears.

My Application stucking when it on debug mode

I build winform application.
When I try to debug my project, I do rebuild and the debug.
The application run, but stuck before the winform is visible.
if I press the Pause button (in Visual Studio) and the the play button, the winform released.
If I debug the application line by line, the winform is not stuck.
What can I do?
I don't know where to begin.
Thanks a lot
Enable First Chance Exceptions in Visual Studio (if they are not yet enabled) and see if there is any exception that disturbs expected execution flow in any way.
Use Eqatec profiler to profile app, to see what happens on startup.

Categories