DEV Community

Cover image for Debug with Visual Studio using all browsers in incognito mode
Emanuele Bartolesi
Emanuele Bartolesi

Posted on • Updated on

Debug with Visual Studio using all browsers in incognito mode

By default, when we debug web applications, Visual Studio launches a new browser window which obviously uses cache, cookies and all the rest of the previous sessions.

Obviously this sometimes wastes some time, especially when working with applications that have SSO or, as in my case, applications that use the login on Azure Active Directory.

To overcome this problem, we can go to change the settings of Visual Studio and add the parameters necessary to launch browsers in "Incognito" mode so as to have a new browser session each time, as if it were at its first use without carrying anything saved.

Basic configuration

To access the browser configuration, click on the arrow next to the default browser and then on "Browse With" and add the browsers by clicking on "Add"

Browsers Configuration


Program: "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"
Arguments: --incognito
Friendly Name: Chrome - Incognito


Program: "C:\Program Files (x86)\Chromium\Application\chrome.exe"
Arguments: --incognito
Friendly Name: Chromium - Incognito


Program: "C:\Program Files\Mozilla Firefox\firefox.exe"
Arguments: -private
Friendly Name: Firefox - Incognito

Firefox Developer Edition

Program: "C:\Program Files\Firefox Developer Edition\firefox.exe"
Arguments: -private
Friendly Name: Firefox Developer - Incognito


Program: "C:\Program Files\Opera\launcher.exe"
Arguments: --private
Friendly Name: Opera - Incognito


Program: "C:\Users\barto\AppData\Local\BraveSoftware\Brave
Arguments: --incognito
Friendly Name: Brave - Incognito

Edge Beta on Chromium

Program: "C:\Program Files (x86)\Microsoft\Edge Beta\Application\msedge.exe"
Arguments: -inprivate
Friendly Name: Edge Beta - Incognito

Edge Dev on Chromium

Program: "C:\Program Files (x86)\Microsoft\Edge Dev\Application\msedge.exe"
Arguments: -inprivate
Friendly Name: Edge Dev - Incognito

Edge Canary on Chromium

Program: "C:\Users\barto\AppData\Local\Microsoft\Edge SxS\Application\msedge.exe"
Arguments: -inprivate
Friendly Name: Edge Canary - Incognito

Discussion (0)