Last active
January 8, 2019 12:52
-
-
Save h1romas4/4650b40089a54cc66e09c2fb2b7e8a7d to your computer and use it in GitHub Desktop.
hbenl.vscode-firefox-debug で VS Code から Firefox に接続して JavaScript をデバッグ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| // 任意の名称 | |
| "name": "Launch firefox", | |
| // hbenl.vscode-firefox-debug 識別子 | |
| "type": "firefox", | |
| "request": "launch", | |
| // 画面遷移したら再アタッチ | |
| "reAttach": true, | |
| // ブラウザ起動 URL | |
| "url": "http://localhost:8080/top", | |
| "pathMappings": [ | |
| { | |
| // ポート指定している場合は必ずポート番号まで含めること(文字列置換でパスマッピングしているため) | |
| "url": "http://localhost:8080", | |
| // エディタで開くファイルと一致させること(シンボリックリンクの場合は要注意) | |
| "path": "${workspaceFolder}/src/main/resources/templates" | |
| } | |
| ], | |
| // 新しい Firefox で起動。 | |
| // firefox 検索パスはプラグインにより developer -> normal firefox と初期設定されている。 | |
| "firefoxArgs": [ | |
| "-new-instance" | |
| ], | |
| // うまく動作しない場合はログでマッピングを確認 | |
| "log": { | |
| "consoleLevel": { | |
| "PathConversion": "Debug", | |
| "default": "Error" | |
| } | |
| } | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment