I am using visual studio. I can debug one startup project using any browser I choose, because the start button at the top of VS is a dropdown that lets me choose a browser to debug with.
However, when I set multiple startup projects (in this case my client and my API), the dropdown changes, and I no longer have the option to choose a browser. My only option is "Start". Despite the fact that firefox is my default browser, this options starts all the projects in IE.
I need to debug these projects in firefox, and I need them all running at the same time or they won't work. How can I run multiple startup projects in VS and have them all start in firefox?
A quick google and SO search yielded no relevant results. Any help is appreciated.
Next to the start button there should be a drop down with a "Browse With" option.
From there you can select a default browser. If Firefox (for some reason) does not show in the list, you will have to add it.
This is using VS 2015 Community.
Related
I would like to continue running Visual Studio 2010 on a new Windows 10 PC, in order to maintain some older projects, which I'm not ready to bring across to VS2015 yet.
However, on windows 10, I find that all of the drop down menus (and right-click context menus) stop appearing after running after a debug session. The only way to get them back again is to exit visual studio and re-launch it.
When clicking any of the File/Edit/etc menus in the top bar, the item will appear highlighted, but the menu that should appear below is completely invisible. Note this is not the same issue that is talked about at https://connect.microsoft.com/VisualStudio/feedback/details/653315/ui-gets-messed-up (which seems to be garbled menus) - mine are not there at all.
I've followed the advice there anyway, to disable hardware acceleration in the VS GUI, but I'm still having the same problem.
Any suggestions?
ADDITIONAL INFO (Edit):
I should add that the PC (laptop) in question is a Thinkpad Yoga 460 with an NVidia GeForce 940M display adapter with switchable graphics (Intel HD Graphics 520).
I have tried using the NVidia control panel to force VS2010 to use the intel graphics, and I have also tried the reverse (forcing it to use the NVidia). The problem still occurs either way.
The menus stop working as soon as a debug session is entered (rather than on return from debug)
In the end, it seems one of my visual studio settings had caused the problem with the invisible/missing drop down menus.
I had imported all visual studio settings from my previous machine (using the Tools --> import/export settings option).
Resetting all Visual studio settings to defaults fixed the menus. I found that re-importing my settings, except for the "options" branch maintained the working menus.
I could dig further and try to figure out which specific setting from the "options" branch is causing the problem, but I'm leaving it here: I've got coding to do! :)
I want Visual Studio 2015 Unity to open Scripting API in Google chrome, because the built in Visual Studio browser is very slow, and every time I click in something Visual Studio freezes for 10 seconds.
How can I open Unity Scripting API Reference in Chrome?
1.Go to Tools -> Options -> Tools for Unity -> General
2.Now, set Use external browser to true.
Done! Test it
1.Select any Unity API you want to open in external browser, go to Help -> Unity API Reference
2.You will see a pop-up Windows Option that will let you chose which program to open that Unity API Reference with.
Simply select Chrome. Make sure to also tick the Always use this app to open .htmls files box so that it will always open with Chrome.
I have a C# project which I am editing in visual studio. When I click the green start button, it builds the project, starts IIS and then opens a browser window.
If I wanted to customise this behaviour, for example to also launch an nginx reverse proxy which sits infront of IIS, how would I do this?
I would also be interested in which pieces of technology are involved in the process between clicking the start button and my browser window opening.
A lot of things happen when you click the "green button". The main are:
If not running - Visual Studio (by default) starts IIS Express - a lite version of the IIS web server
Publishes your project to it
Attaches a debugger
Opens a browser with your project URL
I assume you're only interested in customizing the 4th step. Click on the little downwards arrow next to your "green button" to open the context menu, click Browse With....
.
You can there select from a list of web clients which Visual Studio detected. Click Add..., you'll be presented with a window to add your own client. There you can point Visual Studio to aything - nginx, a custom launcher that you can easily make with C# (Which could, as in your example, start nginx, or perform any kind of action), a PowerShell script, etc.
Note: The last argument passed to the application will be your project URL, any other arguments you add will be prepended before it. If you leave your arguments empty, it will still pass your project URL as the only argument.
A cleaner solution would be to write a Visual Studio plugin, although I don't know much about it - if you decide to go down this route you can begin your research here.
Not sure if this is relevant to you, but you can also select which IIS server Visual Studio should publish your project to. Go to your project Properties > Web, under Servers you can select your target IIS server and project URL.
I had to reload my computer and I was able to choose what browser I was able to test my MVC application in Visual Studio 2013 but it seems that I am missing something.
This is the option I had before:
And now I do not have that option:
I have to change my default browser back and forth for this to work and that is a pain.
Anyone know what I am missing?
IN RESPONSE TO bto.rdz
I'm not given any browser options when I click the arrow:
I went and checked my Visual Studio 2013 and was surprised that mine was doing the same thing. I only had the start option. I investigated the standard menu and after a little guess work I figured out what happened. Right click your web project in your solution. then select it as the start up application. As soon as I did that I got my browser choices back.
I'm creating a website in Visual Studio 2010. I would like to use Visual Studio for C# debugging, without using it as JavaScript debugger. Is there a way to disable script debugging for Asp.Net website projects? I run my projects by hitting F5 in my Visual Studio.
(I've noticed that when I attach the debugger manually, I can specify the type of stuff I would like to debug.)
Note: I would like to debug JavaScript, but not with Visual Studio 2010. The Developer Toolbar will suffice.
See this article on Connect, and the other article it links to.
To summarise, it's a workaround. Apparently VS can't attach the debugger to both Silverlight and script so if you turn on Silverlight debugging, it has to disable script debugging! To access these settings, go to Start Options which is within the web site Property Pages.
Just go to Debug->Options & Settings and select Just-In-Time and Uncheck Script from Types of Code to enable debugging.
This will disable script debugging.
I had same problem on VS2015. There you can choose on which browser you run/debug project. I think older VS opens default browser, so you should change that.
Anyway, I set project to open in chrome and then I manually opened IE and copy-paste the URL from chrome. VS doesn't debug javascript in that case.
On website project left click on project in solution explorer and go to the project properties->go to the Web tab->scroll to the bottom of this tab and on Debuggers area select ASP.NET and Silverlight checkbox. It will disable script debugging.
If u r using IE 8.0 then go to tools-Internet options-advance tab- and uncheck Disable script debugging. Its works fine here.