firefox-devtools / firefox-devtools/vscode-firefox-debug
Vue component unverified breakpoints
- 主要言語
- TypeScript
- スター
- 447
- フォーク
- 76
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Breakpoints in my vue component are all unverified
launch.json is as follows:
"version": "0.2.0",
"configurations": [
{
"type": "firefox",
"request": "launch",
"name": "vuejs: firefox",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}",
"log": {
"fileName": "${workspaceFolder}/log.txt",
"fileLevel": {
"default": "Debug"
}
},
"pathMappings": [
{
"url": "webpack:///src",
"path": "${webRoot}"
}
],
"skipFiles": [ // optional
"${workspaceFolder}/node_modules/**"
]
}
]
Tried numerous pathmapping configs but none seem to work with any component.
Using the loaded scripts tab and checking the logs it seems everything is being mapped correctly, even without pathMappings being set.
Oddly enough if i set a breakpoint in app.vue in the src folder it does actually work but no breakpoints in any file in the components folder work.
Log attached for your pleasure.
[log.txt](https://github.com/firefox-devtools/vscode-firefox-debug/files/7384963/log.txt)
Other relevant info:
- using vue 3, whole app is typescript
- firefox 93.0
- extension version 2.9.4
- npm version 8.1.0
- everything on pop!_os 21.04 (basically ubuntu 21.04)
edit:
forgot to mention, vue.config.js is set correctly to:
`
module.exports = {
configureWebpack: {
devtool: 'source-map'
}
}
`
コントリビューションガイド
調査の方向性
まず、launch.json と vue.config.js から Vue 3 TypeScript のセットアップを再現し、次に添付された log.txt を調べ、app.vue のブレークポイントの動作を components フォルダー内のファイルと比較します。コンポーネントファイル内のブレークポイントが検証され、関連するソースマッピングが一貫して機能すれば、issue は解決です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- typescript
- 領域
- devtools
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100