1.VSCode該Workspace的settings.json加上
"java.debug.settings.vmArgs": "-Dhttp.proxyHost=<Fiddler所在主機位址> -Dhttp.proxyPort=<Fiddler開啟Port號> -Dhttps.proxyHost=<Fiddler所在主機位址> -Dhttps.proxyPort=<Fiddler開啟Port號>",
"java.test.config": [{
"name": "fiddler", // 測試時啟用Fiddler擷取封包的Profile名稱
"vmArgs": [
"-Dhttp.proxyHost=<Fiddler所在主機位址>",
"-Dhttp.proxyPort=<Fiddler開啟Port號>",
"-Dhttps.proxyHost=<Fiddler所在主機位址>",
"-Dhttps.proxyPort=<Fiddler開啟Port號>"
]
},{
"name":"direct" // 測試時不啟用Fiddler擷取封包的Profile名稱
}
],
"java.test.defaultConfig": "fiddler", // 測試時啟用Fiddler擷取封包的Profile名稱
"testing.defaultGutterClickAction": "debug", //測試按鈕行為改成debug
2.Fiddler Classic>Tools>Options>HTTPS
3.Fiddler Classic>Tools>Options>Connections