You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何在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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.22 09:37:01