Visual Studio debug menu invisible - visual-studio

I feel a little stupid asking this, but the "Debug"-menu in my Visual Studio installation has disappeared. It supposed to be between the "Build" and "Tools" menu, but it is simply not there. Restarting VS doesn't help. Also tried looking for a way to customize the menus, but no success.
Any ideas where it went, and how I can get it back?

Right click on your menu -> Customize -> Select Menu Bar -> Click Reset button
alt text http://img63.imageshack.us/img63/3576/debugmenu.png
And make sure you're in debug mode :)
If this doesn't help try Tools menu -> Import and Export Settings -> Reset all settings

[VS2015] - During reseting be sure to choose 'General' preset. If you choose for example web dev code only it still would be invisible.

Inside the build menu drop down you will see the "Start Debug" submenu, you can start debugging by clicking "go" inside it. Or else you can press "F5" to start the debugging to see the Debug toolbar please follow the procedure given by Nokola.

Related

IntelliJ IDEA 2017 - Missing Debug window

My Intellij Debugger window went missing and I can't find any resources on how to get it back, the closest think I can get to my problem is a missing console window but that doesn't help. So I'm hoping someone here can help me retrieve it.
This pic shows a normal Intellij IDE (that I got from my friend) that shows the tab that's missing for me (in red) and the area in which this tab normally shows (in yellow).
And this pic shows my IDE with the missing Debugger window.
I also opened Intellij's help dialogue which claims that the window will show up when your code hits a break point but that didn't do it for me either.
Try the "restore layout" button at the left toolbar of the debugger toolwindow
Showing a tool window:
"Choose View" | "Tool Windows" | "Debug Tool Window" in the main menu.
It as simple as that.
There are multiple other things you can try, look here:
https://www.jetbrains.com/help/idea/manipulating-the-tool-windows.html#show
For example reset your Tool Windows:
You can return to the default workspace layout by choosing "Window" | "Restore Default Layout" (Shift+F12).
To enable the debug window
Click on View -> Tool Windows -> Debug
Or press (Alt+5)
This is not an answer to the specific question asked but a possible solution to My debug window has disappeared!. My situation was actually with Android Studio but should apply elsewhere.
My symptoms were:
I use multiple monitors and after a system crash my debug window
vanished.
Before the crash my debug window was in window mode on a separate
monitor. After the crash it was gone.
There was no Debug tab showing on the main window.
The Debug entry in the View menu was greyed.
The solution that finally worked was to set a break-point at a location I knew the code would hit, debug my project and make it hit the break-point. The Debug window magically appeared.
Remember to reposition the window correctly before exiting.
Try button on the right (there should be debugger, console....)
Try to Restore default layout in console/debugger screen. Its give in image please do check.
Remove the dev option from run/debug configurations from Command line.
You would have undocked, just look for "dock" sign, click on it.
Now debugger will restored to default view

Debug->Exceptions option missing in VS2010

I want my code to break on exceptions and so usually in VS2010 I go to the dialog Debug->Exceptions... to enable this.
But on a new install of VS2010 Professional that option in the Debug menu is completely missing. Has anyone seen this before?
From here:
http://msdn.microsoft.com/en-us/library/d14azbfh.aspx#addexceptionscommand
Do this:
To add the Exceptions command to the Debug menu
On the Tools menu, click Customize.
The Customize dialog box appears.
Click the Commands tab and, in the Menu bar list, click Debug.
Click Add Command.
In Categories in the Add Command dialog box, click Debug.
In Commands, click Exceptions and then click OK.
(Optional) You can click Move Down to adjust the position of the Exceptions command on the Debug menu.
Click Close.
Visual studio can be used with various languages and environments. Therefore, the basic IDE have different settings for each purpose (this is somewhat like Eclipse perspectives). Using a certain language profile does not mean VS cannot be used to develop another language, but some of the IDE's functionality might not be available. To solve this issue, the IDE's profile can be modified as described here.

Solution Configuration but not Platform in VS2010 Toolbar

I'm running VS2010 premium. One of my teammates has both the solution configuration drop-down (Debug, Release) AND the platform (Win32, x64) combo-boxes in his toolbar. I don't.
For a reference, I'm hoping to see:
Instead, I only see the first combo-box. What do I need to configure to make the second one appear?
I had the same issue, here is how I got the menu back
On the menubar go to View → Toolbars → Customize...
Click on the "Commands" tab
Select the "Toolbar" radio button and find "Standard" in the drop down list
Click the "Add Command..." button
Select the "Build" category
Find and select the "Solution Platforms" command and click "OK"
Move your new command to a comfortable place on your toolbar using "Move Up" and "Move Down"
Enjoy not having to dig through Solution Properties to change the platform
in my case the toolbar was not showing.
the above answer helped me find a simpler solution
VIEW > Toolbars > ✓ Standard

How can I disable ReSharper in Visual Studio and enable it again?

I installed ReSharper, and it works in Visual Studio, but how can I disable it?
Whenever I search in the ReSharper menu, I can't find a disable option.
You can disable ReSharper 5 and newer versions by using the Suspend Now button in menu Tools → Options → ReSharper.
If you want to do it without clicking too much, open the Command Window (Ctrl + W, A) and type:
ReSharper_Suspend or ReSharper_Resume depending on what you want.
Or you can even set a keyboard shortcut for this purpose. In Visual Studio, go to Tools -> Options -> Environment -> Keyboard.
There you can assign a keyboard shortcut to ReSharper_Suspend and ReSharper_Resume.
The Command Window can also be opened with Ctrl + Alt + A, just in case you're in the editor.
Bind ReSharper_ToggleSuspended to a shortcut key.
Steps:
Tools>Options
Click Keyboard on the left hand side
Type "suspend" in the "Show commands containing:" input box
Pick the "ReSharper_ToggleSuspended"
Press shortcut keys: and
Press the "Assign" button.
Binding ReSharper_ToggleSuspended to a shortcut key (in my case: Ctrl-Shift-Q) works very well. With ReSharper not supporting the async CTP yet (as of mid-2011), when dipping into the code the uses the async keyword, this shortcut is invaluable.
I always forget how to do this and this is the top result on Google. IMO, none of the answers here are satisfactory.
So the next time I search this and to help others, here's how to do it and what the button looks like to toggle it:
Make sure Resharper is currently enabled or the commands may fail.
Open package manager console via the Quick Launch bar near the caption buttons to launch a PowerShell instance.
Enter the code below into the Package Manager Console Powershell instance:
If you want to add it to the standard toolbar:
$cmdBar = $dte.CommandBars.Item("Standard")
$cmd = $dte.Commands.Item("ReSharper_ToggleSuspended")
$ctrl = $cmd.AddControl($cmdBar, $cmdBar.Controls.Count+1)
$ctrl.Caption = "R#"
If you want to add it to a new custom toolbar:
$toolbarType = [EnvDTE.vsCommandBarType]::vsCommandBarTypeToolbar
$cmdBar = $dte.Commands.AddCommandBar("Resharper", $toolbarType)
$cmd = $dte.Commands.Item("ReSharper_ToggleSuspended")
$ctrl = $cmd.AddControl($cmdBar, $cmdBar.Controls.Count+1)
$ctrl.Caption = "R#"
If you mess up and need to start over, remove it with:
$ctrl.Delete($cmdBar)
$dte.Commands.RemoveCommandBar($cmdBar)
In addition to adding the button, you may wish to add the keyboard shortcut
ctrl+shift+Num -, ctrl+shift+Num - that is: ctrl+shift+-+-
EDIT:
Looks like StingyJack found the original post I found long ago. It never shows up when I do a google search for this
https://stackoverflow.com/a/41792417/16391
If resharper is completely missing from the options menu, it could be because the extension itself has been disabled.
In Visual Studio 2017 ReSharper 2018.X.X can be enabled and disabled by going to Help > Manage Visual Studio Performance. Then select JetBrains ReSharper ... under Extensions.
In Visual Studio 2019, you would go under Extensions->Manage Extensions->Installed
You can add a menu item to toggle ReSharper if you don't want to use the command window or a shortcut key. Sadly the ReSharper_ToggleSuspended command can't be directly added to a menu (there's an open issue on that), but it's easy enough to work around:
Create a macro like this:
Sub ToggleResharper()
DTE.ExecuteCommand("ReSharper_ToggleSuspended")
End Sub
Then add a menu item to run that macro:
Tools | Customize...
Choose the Commands tab
Choose the menu you want to put the item on
Click Add Command...
In the list on the left, choose "Macros"
In the resulting list on the right, choose the macro
Click OK
Highlight your new command in the list and click Modify Selection... to set the menu item text etc.
You need to goto Tools-->Options--->Select Resharper--->Click on suspend now,to disable it
Now Resharper supports Suspend & Resume argument at devenv.exe
(ReSharper 2019.2.3)
Run VS & Suspend R#:
devenv.exe /ReSharper.Suspend
Run VS & Resume R#:
devenv.exe /ReSharper.Resume
Here's an example usage:
In case the solution did not help to just suspend resharper (STRG+R, STRG+R did still not work for example) I decided to disable the plugin and restart visual studio.
VisualStudio > Extras > Extensions > Resharper > Disable
https://learn.microsoft.com/en-us/visualstudio/extensibility/how-to-diagnose-extension-performance
In ReSharper 8:
Tools -> Options -> ReSharper -> Suspend Now
For ReSharper 2017.2.2, go to ReSharper | Options | Product and features.
Tools -> Options -> ReSharper (Tick "Show All setting" if ReSharper option not available ). Then you can do Suspend or Resume. Hope it helps (I tested only in VS2005)
Very simple steps:
Go to Extensions → Manage Extensions
Click on Installed section at the top left and search for "resharper"
You will see disable button over the extension, click to it then restart Visual Studio and that's it!

Accidentally Deleted 'Tools' Menu in Visual Studio

I was messing around with my toolbars and menus in Visual Studio 08. I noticed that they were behaving strangely. When I closed the "Customize" dialog, my 'Tools' and 'Help' menu were gone (perhaps more, I can't remember what else was there). I don't want to reset everything, as I have been curtailing the VS environment to my exact liking for over a year now, and I have never saved those settings. I have lots of custom commands quirk fixes all around. I don't relish starting over. I guess the lesson is that I should be saving my settings regularly.
Does anyone know how to get the menus back? I didn't even know it was possible to remove the actual menus (not toolbar items)!
Thanks,
Ryan
You could try exporting settings from a clean install, find the section with the menus and only import those? I believe the settings file is registered to visual studio so double clicking it should start the import process.
Not to mention, this would become good practice for exporting and backing up your own settings...
Try to right click on a toolbar click on Customize. Then you can select Menu Bar and click on reset. Not sure if it will work, but it's worth a try.
You can reopen the toolbar by going to "Window > Reset window layout".
I've only tested it with VS 2019.
BUT, IDK if that's what you're asking about...

Resources