Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to prevent Firefox from switching to the new tab when starting a web app in Visual Studio?

How to prevent Firefox from switching to the new tab when starting a web app in Visual Studio? I would like to stay at the tab I am currently reading instead of switching back to it. This question is similar to this one. However I don't want to open a new browser window.

I tried several Firefox extensions like 'Tab Utilities', 'Tab Mix Pro' and 'Tabloc'.

Any suggestions?

like image 959
Tony_Henrich Avatar asked Feb 28 '12 18:02

Tony_Henrich


2 Answers

I imagine you want to step through your code on the current page your working on without re-setting up authentication and environment variables.

Here are the options I found, unfortunately I could not find a Firefox plugin that would satisfy your needs.

  1. Disable visual studio from opening a new window when debugging by going to project settings -> Web -> Check Don't open a page. Wait for a request from an external application. Then reload Firefox

  2. Just attach to an existing process through visual studio: Debug -> Attach To Process -> click show processes from all users -> search for WebDev.WebServer.exe (w3wp.exe if hosted from IIS) -> attach. From there just reload the page and Firefox should hook into your application. If you want a quicker way you can make a macro, demonstrated here

like image 116
Ben Anderson Avatar answered Sep 29 '22 00:09

Ben Anderson


You may also want to try adjusting a setting in Firefox on the "about:config" webpage.

Try setting browser.link.open_newwindow to 1, which tells Firefox to "open new tabs in current tab/window". This will affect regular browsing on Firefox as well, but it should give you the desired effect when debugging from Visual Studio.

like image 31
BumbleB2na Avatar answered Sep 29 '22 00:09

BumbleB2na