如何在VS Code调试中使用Edge并始终打开隐私(无痕)窗口?
在VS Code中配置Edge以隐私窗口模式调试
你只需要在现有的launch.json配置项里添加runtimeArgs字段,传入--inprivate参数,就能让Edge始终以无痕窗口启动调试。
修改后的完整launch.json配置如下:
{ // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { "type": "msedge", "request": "launch", "name": "Launch Edge against localhost", "url": "http://localhost:3000/signup", "webRoot": "${workspaceFolder}", "runtimeArgs": ["--inprivate"] } ] }
内容的提问来源于stack exchange,提问作者Aladdin Mhemed
相关产品推荐
相关产品推荐

