Issue
Unlike an Angular .Net Core project, standalone Angular projects do not preserve the browser context between two debugging sessions. Is there a way to force Visual Studio to launch the browser in non-private browsing ?
I'm working on a front app that uses a browser extension. Private Browsing forces me to install/configure the extension every time I launch new debugging session
Solution
Just adding this configuration to .vscode/launch.json:
{
"type": "chrome",
"request": "launch",
"name": "localhost (Chrome)",
"url": "http://localhost:4200",
"webRoot": "${workspaceFolder}",
"runtimeArgs": [ "--user-data-dir=${workspaceFolder}\\.browserDir\\Chrome" ]
}
And create .browserDir\Chrome folder on the solution directory
Answered By - Mayzz
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.