Visual studio 2013 performance wizard, change default browser - visual-studio

When I launch the performance wizard, it opens Internet Explorer. But I want to use Google Chrome instead. Here is how I open the performance wizard. There is no menu for choosing browser.

You can attach it to a process. On the Performance Explorer:
Right click on the project
Attach/Detach
Select what is running the project - w3wp.exe for IIS or iisexpress.exe for IIS Express. If you don't see any of them you should tick both checkboxes (Show processes for all users / Show Processes in all sessions

Related

Stop visual studio opening layout page everytime I refresh mvc web app

I'm using Visual Studio 2015.
If you create a new MVC project with all the basics it gives you (home controller, account controller, etc..), then press F5 to start it, visual studio shows the "_layout.cshtml" page in a preview window.
This gets rather frustrating if you're trying to make "on-the-fly" changes to a specific view, press F5 to refresh and see your changes, then alt-tab back to visual studio, only for it to have auto-previewed the layout page again.
How do you turn this feature off?
In Visual Studio, you should disable the checkbox for 'Enable browser link'.
I was able to reproduce on a new install. For me, the offender was "Web Essentials" extension. Try to disable and restart VS.
Also, it only happens with Edge's developer tools open. Haven't seen this with Firefox nor Chrome.
This is caused by the F12 Developer Tools where the page of the selected element in the DOM Explorer/Elements tab is automatically opened and synchronized in Visual Studio.
If you want to keep the Browser Link feature enabled, the F12 Developer Tools window open, and not lose your currently focused tab in Visual Studio, here's a work-around:
1. Right-click on the _Layout.cshtml tab in Visual Studio and select New Vertical Tab Group.
If you already have a tab group open, select Move to Next Tab Group.
2. Resize the splitter control of the tab group so that the tab group is barely visible.
3. Repeat these steps for all other files that automatically open in Visual Studio which disrupt your workflow.
I am unable to replicate your exact problem, but the following should disable the preview tab:
Type "preview" into Quick Launch
Select "Environment --> Tabs and Windows"
Disable "Allow new files to be opened in the preview tab"

How do you prevent Visual Studio 2012 from closing IE when you stop debugging?

When I was using Visual Studio 2010, I could just "Detach All" and the web site would continue to run and the browser wouldn't close. That would enable me to attach a different solution to debug a separately compiled library. Now all that's left is "Stop Debugging" and "Terminate All".
Although the website is still running in the background, I have to open a new browser window and navigate back where I was.
Is there some way to go back to the 2010 functionality?
Detach All is still available in VS 2012. If you don't have it under Debug in Main Menu then you may need to add it manually (right click on toolbar, select Customize.. from context menu).

How to make IIS Express the default web server in Visual Studio?

Is there a way to set IIS Express as the default launch option in Visual Studio 2010 SP1? Currently, it uses Visual Studio Development Server by default and one has to execute "Use IIS Express..." command manually.
Right click on the Default Startup project file in your Solution explorer.
Select "Properties".
Click on the Web Tab on the left hand side
scroll down and select the "Use Local IIS Web server radio button
Tick the checkbox "Use IIS Express"
Another useful tid bit in the section is that you can tell IIS not to launch browsers when you debug and just wait for a browser process to hit it. This is really nice for cross-browser testing.
Just above the previous said section, look for a radio button titled "Don't open a page. Wait for a request from an external app" under Start Action section of the same page
EDIT:
To set all projects made to behave this way do the following:
Tools -> Options
Projects and Solutions
Web Projects
Tick "Use IIS Express for new file-based web sites and projects

Attach to process in VS2010 express using a web site. Is it possible?

I have read this article but it applies to web projects with a .csproj... What about a 'web site'?
http://www.ninjatrader.com/support/forum/showthread.php?t=15671
People at work here tell me to just response.write my way to debug the web sites but I really miss the attach to process that is in the professional edition of vs2010.. or maybe I have to get used to response.write debugging?
(Reason I am not debugging is ektron 8.0 does not compile is vs2010.. so I must attach to process.. or use vs2008)
Visual Studio 2010 Express Edition supports Attach to process but it is available only in Expert Settings.
Go to Tools->Settings->Expert Settings.
After this change, you should see Attach to Process button in Debug menu.
It isn't available for VS2100 Express. Check the link. http://msdn.microsoft.com/en-us/library/vstudio/c6wf8e4z(v=vs.100).aspx
An option for websites hosted on another application (Like IIS) is to use the property pages.
Right Click on Project/Website in Solution Explorer->Property Pages->Start Options
Launch VS2010 Express (or VS2012 Express) as Administrator
Set "Start Action" radio-button to "Don't open a page. Wait for a request from an external application."
Set "Server" radio-button to "Use Custom Server"
Set the "Base URL" textbox to your site url.
Verify the Debuggers: ASP.NET option is checked.
Hit F5 to launch the debugger, then request the page in the browser.
Then, linking to the website is as easy as pressing the play-debug button and navigating to your url.
NB: This was tested in VS Express for Web 2012 (ver. 11.0.50727.1) on a Web Site project.
Just like said in the post above, you can use "Attach to process" in visual studio express. But it's not necessary to change your settings to "expert settings". All you have to do is add the command to the debug menu.
Tools-> Customize -> Commands -> Menu bar: Debug -> Add Command... -> Debug -> Attach to Process
Try this:
right click on toolbar/menu Customize/tab Commands/button Add Command/left list Debug/right list Attach to Process.../button OK/button Close.
for me works crtl-alt-p shortcut too.
.. voila!

Starting multiple projects when debugging in Visual Studio 2010

In Visual Studio 2010, I have a web application and a console application (actually a service using NServiceBus, but it runs locally as a console application) that I want to both startup when I hit Debug.
Right now I have the Web Application set as the startup application and it opens in a browser, then I right click on my Service and go to Debug -> Start new instance. This works fine, but I would rather not do it manually because I sometimes forget and need the Service running to handle messages from the website.
Thanks.
You can start multiple projects by choosing multiple projects to start and the order by right clicking on the solution node on the solution explorer and selecting Properties from the menu. Select the radio button for "Multiple startup projects" and choose the action as Start for the required projects.

Resources