{"id":1155,"date":"2017-05-07T17:06:00","date_gmt":"2017-05-07T17:06:00","guid":{"rendered":"https:\/\/rawbytes.org\/?p=1155"},"modified":"2025-11-24T02:59:53","modified_gmt":"2025-11-24T02:59:53","slug":"vscode%e3%81%a7three-js%e3%81%ae%e9%96%8b%e7%99%ba%e7%92%b0%e5%a2%83%e3%82%92%e6%95%b4%e3%81%88%e3%82%8b%ef%bc%88%ef%bc%93%ef%bc%89","status":"publish","type":"post","link":"https:\/\/rawbytes.org\/?p=1155","title":{"rendered":"VSCode\u3067Three.js\u306e\u958b\u767a\u74b0\u5883\u3092\u6574\u3048\u308b\uff08\uff13\uff09"},"content":{"rendered":"<p>Visual Studio Code\u3067\u3001Three.js\u306e\u958b\u767a\u74b0\u5883\u3092\u69cb\u7bc9\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u30dd\u30b9\u30c8\u3067\u306f\u3001VSCode\u306e\u30c7\u30d0\u30c3\u30ac\u6a5f\u80fd\u3092\u5229\u7528\u3057\u3066\u30d6\u30ec\u30fc\u30af\u30dd\u30a4\u30f3\u30c8\u3092\u6253\u3063\u305f\u308a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3053\u3068\u307e\u3067\u304c\u76ee\u6a19\u3067\u3059\u3002\u30d6\u30e9\u30a6\u30b6\u74b0\u5883\u3068\u3057\u3066\u306fChrome\u304bFirefox\u304c\u73fe\u5b9f\u7684\u306a\u9078\u629e\u80a2\u3060\u3068\u601d\u3046\u3051\u3069\u3001\u4eca\u56de\u306f\u307e\u305aFirefox\u3067\u30c7\u30d0\u30c3\u30b0\u3059\u308b\u3053\u3068\u3092\u8003\u3048\u307e\u3059\u3002<\/p>\n<h3>\nDebugger for Firefox \u3092VSCode\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/h3>\n<p>\u307e\u305a\u306fVSCode\u306bFirefox\u306e\u30c7\u30d0\u30c3\u30ac\u62e1\u5f35\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002\u3053\u308c\u306f\u5358\u7d14\u306b\u4ee5\u4e0b\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308c\u3070OK\u3002<br \/>\n<a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=hbenl.vscode-firefox-debug\">https:\/\/marketplace.visualstudio.com\/items?itemName=hbenl.vscode-firefox-debug<\/a><br \/>\n\u3053\u306e\u62e1\u5f35\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u3001\u30c7\u30d0\u30c3\u30ac\u306elaunch.json\u30d5\u30a1\u30a4\u30eb\u306e\u7de8\u96c6\u6642\u3001Add Configuration&#8230;\u3057\u305f\u5834\u5408\u306bFirefox:*\u7cfb\u306e\u8a2d\u5b9a\u9805\u76ee\u304c\u9078\u3079\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3>\nWebpack\u304c\u30d3\u30eb\u30c9\u6642\u306bSourceMap\u3092\u51fa\u529b\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3059\u308b<\/h3>\n<p>\u524d\u56de\u306e\u30dd\u30b9\u30c8\u3067\u8a2d\u5b9a\u3057\u305fwebpack.config.js\u306b\u8a2d\u5b9a\u3092\u8ffd\u52a0\u3057\u3066\u3001SourceMap\u3068\u3044\u3046\u30c7\u30d0\u30c3\u30b0\u7528\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u30d3\u30eb\u30c9\u6642\u306b\u51fa\u529b\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002SourceMap\u3068\u3044\u3046\u306b\u306f\u7c21\u5358\u306b\u8a00\u3048\u3070\u3001webpack\u306a\u3069\u306e\u30d3\u30eb\u30c9\u30c4\u30fc\u30eb\u3067\u30d0\u30f3\u30c9\u30eb\u3055\u308c\u305fJavaScript\u30d5\u30a1\u30a4\u30eb\u3068\u3001\u30d0\u30f3\u30c9\u30eb\u524d\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306e\u5bfe\u5fdc\u4ed8\u3051\u3092\u8a18\u8ff0\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3067\u3001\u3053\u308c\u304c\u5b58\u5728\u3059\u308b\u3053\u3068\u306b\u3088\u3063\u3066\u30d0\u30f3\u30c9\u30eb\u524d\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u4e0a\u3067\u30d6\u30ec\u30fc\u30af\u30dd\u30a4\u30f3\u30c8\u3092\u6307\u5b9a\u3057\u305f\u308a\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u306b\u306a\u308b\u3082\u306e\u306e\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u5177\u4f53\u7684\u306b\u306f\u3001module.exports\u306e\u8f9e\u66f8\u914d\u5217\u306e\u4e2d\u306b\u4ee5\u4e0b\u306e\u9805\u76ee\u3092\u8ffd\u52a0\u3059\u308b\u3060\u3051\u3067\u3059\u3002<\/p>\n<pre class=\"prettyprint\">devtool: \"source-map\"\n<\/pre>\n<p>source-map\u4ee5\u5916\u306b\u3082\u9078\u629e\u80a2\u304c\u3044\u304f\u3064\u304b\u3042\u308b\u3088\u3046\u3067\u3059\u304c\u3001\u4eca\u56de\u306fsource-map\u3092\u6307\u5b9a\u3057\u307e\u3057\u305f\u3002\u30d3\u30eb\u30c9\u6642\u306e\u51e6\u7406\u6642\u9593\u3068\u3001\u53d6\u5f97\u3067\u304d\u308b\u30c7\u30d0\u30c3\u30b0\u60c5\u5831\u306e\u7cbe\u5ea6\u3068\u306e\u30c8\u30ec\u30fc\u30c9\u30aa\u30d5\u306e\u3088\u3046\u306a\u306e\u3067\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u8abf\u3079\u308c\u3070\u826f\u3044\u3068\u601d\u3044\u307e\u3059\u3002 <br \/>\n\u4e0a\u8a18\u306e\u8a2d\u5b9a\u3067\u518d\u5ea6\u30d3\u30eb\u30c9\u3092\u3057\u76f4\u3059\u3068\u3001output\u3067\u306e\u51fa\u529bJavaScript\u540d\u304cbundle.js\u3060\u3063\u305f\u5834\u5408\u306bbundle.js.map\u3068\u3044\u3046SourceMap\u30d5\u30a1\u30a4\u30eb\u304c\u51fa\u529b\u3055\u308c\u307e\u3059\uff08\u8a2d\u5b9a\u306b\u3088\u3063\u3066\u3001\u51fa\u529b\u3055\u308c\u308b\u3082\u306e\u306e\u5185\u5bb9\u3082\u5909\u308f\u308b\u3088\u3046\u3067\u3059\uff09\u3002<\/p>\n<h3>\nlaunch.json\u306bFirefox\u7528\u306e\u8a2d\u5b9a\u3092\u8ffd\u52a0\u3059\u308b<\/h3>\n<p>\u30c7\u30d0\u30c3\u30b0\u30e1\u30cb\u30e5\u30fc\u304b\u3089Add Configuration&#8230;\u3092\u9078\u629e\u3057\u3001Firefox: Launch (Server) \u304a\u3088\u3073Firefox: Attach\u306e2\u3064\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002SourceMap\u306b\u95a2\u308f\u308b\u90e8\u5206\u306fpathMappings\u3068\u3044\u3046\u30ad\u30fc\u9805\u76ee\u3060\u3051\u306a\u306e\u3067\u3001\u3053\u308c\u3092\u305d\u308c\u305e\u308c\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002\u79c1\u306e\u74b0\u5883\u3067\u52d5\u4f5c\u3057\u305f\u8a2d\u5b9a\u306f\u4e0b\u8a18\u306e\u3082\u306e\u3067\u3001Extension\u306e\u30b5\u30a4\u30c8\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u66f8\u3044\u3066\u3042\u308b\u3082\u306e\u3068\u306f\u9055\u3044\u307e\u3057\u305f\u304c\u3001\u8981\u3059\u308b\u306burl\u3068\u3044\u3046\u9805\u76ee\u304c\u30d6\u30e9\u30a6\u30b6\u304c\u30a2\u30af\u30bb\u30b9\u3057\u3066\u3044\u308b\u5148\u3001path\u3068\u3044\u3046\u306e\u304c\u5bfe\u5fdc\u3059\u308b\u30bd\u30fc\u30b9\u306e\u30ed\u30fc\u30ab\u30eb\u3067\u306e\u30d5\u30a1\u30a4\u30eb\u30d1\u30b9\u3092\u6307\u305b\u3070\u826f\u3044\u3088\u3046\u3067\u3059\u3002\u30c7\u30d0\u30c3\u30b0\u3059\u308b\u5bfe\u5fdc\u306e\u30da\u30fc\u30b8\u3067\u5bfe\u8c61\u306eurl\u304c\u3069\u3053\u3092\u6307\u3057\u3066\u3044\u308b\u304b\u306f\u3001\u30c4\u30fc\u30eb\uff1e\u30a6\u30a7\u30d6\u958b\u767a\uff1e\u30c7\u30d0\u30c3\u30ac\u30fc\u3092\u958b\u304d\u3001\u300c\u30bd\u30fc\u30b9\u300d\u3068\u3044\u3046\u30ea\u30b9\u30c8\u306e\u4e2d\u306bwebpack:\/\/\u3068\u3044\u3046\u30b9\u30ad\u30fc\u30e0\u306eURL\u304c\u898b\u3064\u304b\u308b\u3068\u601d\u3046\u306e\u3067\u3001\u305d\u308c\u304c\u3069\u3053\u3092\u6307\u3057\u3066\u3044\u308b\u306e\u304b\u3092\u78ba\u8a8d\u3057\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u5185\u306e\u30d0\u30f3\u30c9\u30eb\u524d\u306e\u30bd\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u3068\u5bfe\u5fdc\u3059\u308b\u3088\u3046\u306b\u9069\u5b9c\u5909\u66f4\u3059\u308c\u3070\u826f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"prettyprint\">\n{\n    \"version\": \"0.2.0\",\n    \"configurations\": [\n        \n        {\n            \"type\": \"firefox\",\n            \"request\": \"attach\",\n            \"name\": \"Attach\",\n            \"pathMappings\": [\n                {\n                    \"url\": \"webpack:\/\/\",\n                    \"path\": \"${workspaceRoot}\"\n                }\n            ]\n        },\n        {\n            \"type\": \"firefox\",\n            \"request\": \"launch\",\n            \"reAttach\": true,\n            \"name\": \"Launch localhost\",\n            \"url\": \"http:\/\/localhost:8080\/index.html\",\n            \"webRoot\": \"${workspaceRoot}\/htdocs\/\",\n            \"pathMappings\": [\n                {\n                    \"url\": \"webpack:\/\/\",\n                    \"path\": \"${workspaceRoot}\"\n                }\n            ]\n        }\n    ]\n}<\/pre>\n<p><\/p>\n<h3>\nFirefox\u3092\u4f7f\u3063\u3066\u30c7\u30d0\u30c3\u30b0\u3059\u308b\uff08Launch\uff09<\/h3>\n<p>\u4e0a\u8a18\u4f8b\u3067\u306f\u3001Launch localhost\u3068\u3044\u3046\u9805\u76ee\u3092\u9078\u3093\u3067\u30c7\u30d0\u30c3\u30b0\u3092\u5b9f\u884c\uff08F5\uff09\u3059\u308b\u3068\u3001Firefox\u304c\u8d77\u52d5\u3057\u3066url\u9805\u76ee\u306b\u8a2d\u5b9a\u3057\u305f\u30b5\u30a4\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u3053\u306e\u3068\u304d\u3001\u30bd\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u5074\uff08webpack\u3067\u30d0\u30f3\u30c9\u30eb\u3055\u308c\u308b\u524d\u306e\u30d5\u30a1\u30a4\u30eb\uff09\u306b\u30d6\u30ec\u30fc\u30af\u30dd\u30a4\u30f3\u30c8\u3092\u6253\u3063\u3066\u3044\u308b\u3068\u3001\u305d\u3053\u3067\u51e6\u7406\u304c\u505c\u6b62\u3059\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u8a73\u3057\u304f\u8abf\u3079\u3066\u3044\u306a\u3044\u3051\u3069\u3001\u8d77\u52d5\u3057\u305f\u5f8c\u306bFirefox\u5074\u3067\u30da\u30fc\u30b8\u3092\u30ea\u30ed\u30fc\u30c9\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u30b1\u30fc\u30b9\u304c\u3042\u3063\u305f\u306e\u306f\u3001\u591a\u5206\u30a4\u30d9\u30f3\u30c8\u306e\u767a\u706b\u306e\u30bf\u30a4\u30df\u30f3\u30b0\u306e\u3088\u3046\u306a\u6c17\u304c\u3057\u307e\u3059\u3002<br \/>\n<br \/>\n\u3061\u306a\u307f\u306breAttach\u3068\u3044\u3046\u9805\u76ee\u3092true\u306b\u3059\u308b\u3068\u5f53\u8a72\u30c7\u30d0\u30c3\u30b0\u7d42\u4e86\u6642\u306bFirefox\u306f\u5408\u308f\u305b\u3066\u7d42\u4e86\u3057\u3001\u30c7\u30d0\u30c3\u30b0\u306eRestart\u6642\u306b\u306fFirefox\u3054\u3068\u518d\u8d77\u52d5\u3057\u307e\u3059\u3002\u3053\u308c\u3067\u3082\u3044\u3044\u3093\u3060\u3051\u3069\u30c7\u30d0\u30c3\u30b0\u6642\u306b\u306f\u901a\u5e38\u306a\u3093\u3069\u3082\u7e70\u308a\u8fd4\u3059\u3053\u3068\u306b\u306a\u308b\u3068\u601d\u3046\u306e\u3067\u3001\u901a\u5e38\u306fAttach\u30e2\u30fc\u30c9\u3092\u9078\u3093\u3060\u65b9\u304c\u3088\u3055\u305d\u3046\u3067\u3059\u3002<\/p>\n<h3>\nFirefox\u3092\u4f7f\u3063\u3066\u30c7\u30d0\u30c3\u30b0\u3059\u308b\uff08Attach\uff09&nbsp;<\/h3>\n<p>Attach\u30e2\u30fc\u30c9\u306f\u3001\u3059\u3067\u306b\u5b9f\u884c\u4e2d\u306eFirefox\u306bVSCode\u304b\u3089\u63a5\u7d9a\u3059\u308b\u306e\u3067\u3001Firefox\u81ea\u4f53\u306e\u8d77\u52d5\u7d42\u4e86\u3092\u4f34\u308f\u305a\u3001\u52b9\u7387\u7684\u3067\u3059\u3002\u305f\u3060\u3057\u3001\u30c7\u30d0\u30c3\u30b0\u3092\u5916\u90e8\u30c4\u30fc\u30eb\u304b\u3089\u5229\u7528\u53ef\u80fd\u306b\u3059\u308b\u305f\u3081\u306b\u6700\u521d\u306bFirefox\u81ea\u4f53\u306e\u8a2d\u5b9a\u3092\u5909\u66f4\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u8a2d\u5b9a\u306e\u8a73\u7d30\u306b\u3064\u3044\u3066\u306fExtension\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306eAttach\u3068\u3044\u3046\u9805\u76ee\u3092\u898b\u3066\u305d\u306e\u901a\u308a\u306b\u8a2d\u5b9a\u3059\u308c\u3070\u826f\u3044\u3067\u3059\u3002\u8a2d\u5b9a\u753b\u9762\u3078\u306f\u3001about:config\u3068\u3044\u3046\u30a2\u30c9\u30ec\u30b9\u3092\u30a2\u30c9\u30ec\u30b9\u30d0\u30fc\u306b\u5165\u529b\u3057\u307e\u3059\u3002<br \/>\n<span class=\"prettyprint\"><br \/>\n<a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=hbenl.vscode-firefox-debug\">https:\/\/marketplace.visualstudio.com\/items?itemName=hbenl.vscode-firefox-debug<\/a><\/span><br \/>\n<\/p>\n<div>\n<\/div>\n<div>\n\u4e0a\u8a18\u306e\u5fc5\u8981\u306a\u8a2d\u5b9a\u3092\u884c\u3063\u305f\u4e0a\u3067\u3001Firefox\u306f\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u304b\u3089\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30aa\u30d7\u30b7\u30e7\u30f3\u4ed8\u304d\u3067\u8d77\u52d5\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002macOS\u306e\u5834\u5408\u3001<\/p>\n<pre class=\"prettyprint\">\n$ \/Applications\/Firefox.app\/Contents\/MacOS\/firefox -start-debugger-server -no-remote\n<\/pre>\n<p>\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002-no-remote\u30aa\u30d7\u30b7\u30e7\u30f3\u306f\u30ed\u30fc\u30ab\u30eb\u30db\u30b9\u30c8\u4ee5\u5916\u304b\u3089\u306e\u30a2\u30af\u30bb\u30b9\u3092\u62d2\u5426\u3059\u308b\u8a2d\u5b9a\u306a\u306e\u3067\u3001\u74b0\u5883\u306b\u3088\u3063\u3066\u306f\u9664\u5916\u3057\u307e\u3059\u3002<\/p>\n<p>\u4e0a\u8a18\u3067\u8d77\u52d5\u3057\u305fFirefox\u4e0a\u3067\u305f\u3068\u3048\u3070http:\/\/localhost:8080\/index.html\u306b\u30a2\u30af\u30bb\u30b9\u3057\u305f\u3046\u3048\u3067\u3001VSCode\u306e\u30c7\u30d0\u30c3\u30b0\u30e1\u30cb\u30e5\u30fc\u4e0a\u304b\u3089Attach\u30e1\u30cb\u30e5\u30fc\u3092\u9078\u629e\u3057\u5b9f\u884c\uff08F5\uff09\u3059\u308b\u3068\u3001Launch\u6642\u3068\u540c\u3058\u3088\u3046\u306b\u30c7\u30d0\u30c3\u30b0\u304c\u5b9f\u884c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002Launch\u6642\u3068\u540c\u69d8\u306b\u3001\u30c7\u30d0\u30c3\u30b0\u5b9f\u884c\u5f8c\u3001\u30da\u30fc\u30b8\u3092\u518d\u8aad\u307f\u8fbc\u307f\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u30b1\u30fc\u30b9\u3082\u3042\u308b\u3088\u3046\u3067\u3059\u3002<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Visual Studio Code\u3067\u3001Three.js\u306e\u958b\u767a\u74b0\u5883\u3092\u69cb\u7bc9\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u30dd\u30b9\u30c8\u3067\u306f\u3001VSCode\u306e\u30c7\u30d0\u30c3\u30ac\u6a5f\u80fd\u3092\u5229\u7528\u3057\u3066\u30d6\u30ec\u30fc\u30af\u30dd\u30a4\u30f3\u30c8\u3092\u6253\u3063\u305f\u308a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3053\u3068\u307e\u3067\u304c\u76ee\u6a19\u3067\u3059\u3002\u30d6\u30e9\u30a6\u30b6\u74b0\u5883\u3068\u3057\u3066\u306fChrome\u304bFirefox\u304c\u73fe\u5b9f\u7684\u306a\u9078\u629e\u80a2\u3060\u3068\u601d\u3046\u3051\u3069\u3001\u4eca\u56de\u306f\u307e\u305aFirefox\u3067\u30c7\u30d0\u30c3\u30b0\u3059\u308b\u3053\u3068\u3092\u8003\u3048\u307e\u3059\u3002 Debugger for Firefox \u3092VSCode\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b \u307e\u305a\u306fVSCode\u306bFirefox\u306e\u30c7\u30d0\u30c3\u30ac\u62e1\u5f35\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002\u3053\u308c\u306f\u5358\u7d14\u306b\u4ee5\u4e0b\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308c\u3070OK\u3002 https:\/\/marketplace.visualstudio.com\/items?itemName=hbenl.vscode-firefox-debug \u3053\u306e\u62e1\u5f35\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u3001\u30c7\u30d0\u30c3\u30ac\u306elaunch.json\u30d5\u30a1\u30a4\u30eb\u306e\u7de8\u96c6\u6642\u3001Add Configuration&#8230;\u3057\u305f\u5834\u5408\u306bFirefox:*\u7cfb\u306e\u8a2d\u5b9a\u9805\u76ee\u304c\u9078\u3079\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002 Webpack\u304c\u30d3\u30eb\u30c9\u6642\u306bSourceMap\u3092\u51fa\u529b\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3059\u308b \u524d\u56de\u306e\u30dd\u30b9\u30c8\u3067\u8a2d\u5b9a\u3057\u305fwebpack.config.js\u306b\u8a2d\u5b9a\u3092\u8ffd\u52a0\u3057\u3066\u3001SourceMap\u3068\u3044\u3046\u30c7\u30d0\u30c3\u30b0\u7528\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u30d3\u30eb\u30c9\u6642\u306b\u51fa\u529b\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002SourceMap\u3068\u3044\u3046\u306b\u306f\u7c21\u5358\u306b\u8a00\u3048\u3070\u3001webpack\u306a\u3069\u306e\u30d3\u30eb\u30c9\u30c4\u30fc\u30eb\u3067\u30d0\u30f3\u30c9\u30eb\u3055\u308c\u305fJavaScript\u30d5\u30a1\u30a4\u30eb\u3068\u3001\u30d0\u30f3\u30c9\u30eb\u524d\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306e\u5bfe\u5fdc\u4ed8\u3051\u3092\u8a18\u8ff0\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3067\u3001\u3053\u308c\u304c\u5b58\u5728\u3059\u308b\u3053\u3068\u306b\u3088\u3063\u3066\u30d0\u30f3\u30c9\u30eb\u524d\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u4e0a\u3067\u30d6\u30ec\u30fc\u30af\u30dd\u30a4\u30f3\u30c8\u3092\u6307\u5b9a\u3057\u305f\u308a\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u306b\u306a\u308b\u3082\u306e\u306e\u3088\u3046\u3067\u3059\u3002 \u5177\u4f53\u7684\u306b\u306f\u3001module.exports\u306e\u8f9e\u66f8\u914d\u5217\u306e\u4e2d\u306b\u4ee5\u4e0b\u306e\u9805\u76ee\u3092\u8ffd\u52a0\u3059\u308b\u3060\u3051\u3067\u3059\u3002 devtool: &#8220;source-map&#8221; source-map\u4ee5\u5916\u306b\u3082\u9078\u629e\u80a2\u304c\u3044\u304f\u3064\u304b\u3042\u308b\u3088\u3046\u3067\u3059\u304c\u3001\u4eca\u56de\u306fsource-map\u3092\u6307\u5b9a\u3057\u307e\u3057\u305f\u3002\u30d3\u30eb\u30c9\u6642\u306e\u51e6\u7406\u6642\u9593\u3068\u3001\u53d6\u5f97\u3067\u304d\u308b\u30c7\u30d0\u30c3\u30b0\u60c5\u5831\u306e\u7cbe\u5ea6\u3068\u306e\u30c8\u30ec\u30fc\u30c9\u30aa\u30d5\u306e\u3088\u3046\u306a\u306e\u3067\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u8abf\u3079\u308c\u3070\u826f\u3044\u3068\u601d\u3044\u307e\u3059\u3002 \u4e0a\u8a18\u306e\u8a2d\u5b9a\u3067\u518d\u5ea6\u30d3\u30eb\u30c9\u3092\u3057\u76f4\u3059\u3068\u3001output\u3067\u306e\u51fa\u529bJavaScript\u540d\u304cbundle.js\u3060\u3063\u305f\u5834\u5408\u306bbundle.js.map\u3068\u3044\u3046SourceMap\u30d5\u30a1\u30a4\u30eb\u304c\u51fa\u529b\u3055\u308c\u307e\u3059\uff08\u8a2d\u5b9a\u306b\u3088\u3063\u3066\u3001\u51fa\u529b\u3055\u308c\u308b\u3082\u306e\u306e\u5185\u5bb9\u3082\u5909\u308f\u308b\u3088\u3046\u3067\u3059\uff09\u3002 launch.json\u306bFirefox\u7528\u306e\u8a2d\u5b9a\u3092\u8ffd\u52a0\u3059\u308b \u30c7\u30d0\u30c3\u30b0\u30e1\u30cb\u30e5\u30fc\u304b\u3089Add Configuration&#8230;\u3092\u9078\u629e\u3057\u3001Firefox: Launch (Server) \u304a\u3088\u3073Firefox: Attach\u306e2\u3064\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002SourceMap\u306b\u95a2\u308f\u308b\u90e8\u5206\u306fpathMappings\u3068\u3044\u3046\u30ad\u30fc\u9805\u76ee\u3060\u3051\u306a\u306e\u3067\u3001\u3053\u308c\u3092\u305d\u308c\u305e\u308c\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002\u79c1\u306e\u74b0\u5883\u3067\u52d5\u4f5c\u3057\u305f\u8a2d\u5b9a\u306f\u4e0b\u8a18\u306e\u3082\u306e\u3067\u3001Extension\u306e\u30b5\u30a4\u30c8\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u66f8\u3044\u3066\u3042\u308b\u3082\u306e\u3068\u306f\u9055\u3044\u307e\u3057\u305f\u304c\u3001\u8981\u3059\u308b\u306burl\u3068\u3044\u3046\u9805\u76ee\u304c\u30d6\u30e9\u30a6\u30b6\u304c\u30a2\u30af\u30bb\u30b9\u3057\u3066\u3044\u308b\u5148\u3001path\u3068\u3044\u3046\u306e\u304c\u5bfe\u5fdc\u3059\u308b\u30bd\u30fc\u30b9\u306e\u30ed\u30fc\u30ab\u30eb\u3067\u306e\u30d5\u30a1\u30a4\u30eb\u30d1\u30b9\u3092\u6307\u305b\u3070\u826f\u3044\u3088\u3046\u3067\u3059\u3002\u30c7\u30d0\u30c3\u30b0\u3059\u308b\u5bfe\u5fdc\u306e\u30da\u30fc\u30b8\u3067\u5bfe\u8c61\u306eurl\u304c\u3069\u3053\u3092\u6307\u3057\u3066\u3044\u308b\u304b\u306f\u3001\u30c4\u30fc\u30eb\uff1e\u30a6\u30a7\u30d6\u958b\u767a\uff1e\u30c7\u30d0\u30c3\u30ac\u30fc\u3092\u958b\u304d\u3001\u300c\u30bd\u30fc\u30b9\u300d\u3068\u3044\u3046\u30ea\u30b9\u30c8\u306e\u4e2d\u306bwebpack:\/\/\u3068\u3044\u3046\u30b9\u30ad\u30fc\u30e0\u306eURL\u304c\u898b\u3064\u304b\u308b\u3068\u601d\u3046\u306e\u3067\u3001\u305d\u308c\u304c\u3069\u3053\u3092\u6307\u3057\u3066\u3044\u308b\u306e\u304b\u3092\u78ba\u8a8d\u3057\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u5185\u306e\u30d0\u30f3\u30c9\u30eb\u524d\u306e\u30bd\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u3068\u5bfe\u5fdc\u3059\u308b\u3088\u3046\u306b\u9069\u5b9c\u5909\u66f4\u3059\u308c\u3070\u826f\u3044\u3068\u601d\u3044\u307e\u3059\u3002 { &#8220;version&#8221;: &#8220;0.2.0&#8221;, &#8220;configurations&#8221;: [ { &#8220;type&#8221;: &#8220;firefox&#8221;, &#8220;request&#8221;: &#8220;attach&#8221;, &#8220;name&#8221;: &#8220;Attach&#8221;, &#8220;pathMappings&#8221;: [ { &#8220;url&#8221;: &#8220;webpack:\/\/&#8221;, &#8220;path&#8221;: &#8220;${workspaceRoot}&#8221; } ] }, { &#8220;type&#8221;: &#8220;firefox&#8221;, &#8220;request&#8221;: &#8220;launch&#8221;, &#8220;reAttach&#8221;: true, &#8220;name&#8221;: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1155","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/rawbytes.org\/index.php?rest_route=\/wp\/v2\/posts\/1155","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rawbytes.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rawbytes.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rawbytes.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rawbytes.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1155"}],"version-history":[{"count":1,"href":"https:\/\/rawbytes.org\/index.php?rest_route=\/wp\/v2\/posts\/1155\/revisions"}],"predecessor-version":[{"id":1156,"href":"https:\/\/rawbytes.org\/index.php?rest_route=\/wp\/v2\/posts\/1155\/revisions\/1156"}],"wp:attachment":[{"href":"https:\/\/rawbytes.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1155"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rawbytes.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1155"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rawbytes.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1155"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}