eclipse-wildwebdeveloper / eclipse-wildwebdeveloper/wildwebdeveloper
Breakpoint stops in the transpiled js file instead of the source file
オープン
まだ誰も着手していません。
- 主要言語
- Java
- スター
- 201
- フォーク
- 76
- 平均マージ
- 4日 7時間
- マージ済み PR(30日)
- 21
説明
I use a project that uses webpack to transpile js files. In new debug, when I put breakpoint in a source file, debug stops at the transpiled file instead of the source file.
Steps to reproduce:
yarnmust be installed.- Run the commands:
git clone git@github.com:plone/volto.git
cd volto
yarn
- Create an Eclipse project pointing to the
voltofolder. - Put a breakpoint on this line: https://github.com/plone/volto/blob/6c65e03a896b8ba38022963c651999c9cf636b51/src/server.jsx#L176
- Go to "Run -> Debug Configurations... -> Node.js application" and create a new configuration.
- On the Program tab, fill in the following configurations:
Program: /path/to/volto/node_modules/razzle/bin/razzle.js
Arguments: start
Working directory: /path/to/volto
- On the Environment tab, create a
PATHvariable and enter the path to thenodeexecutable folder on your machine. For example:/usr/bin - Click in Apply.
- Click in Debug.
- Wait for the server to start.
- In the browser, access:
http://localhost:3000 - The debug stop in
build/server.jsinstead ofsrc/server.jsx
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
razzle/bin/razzle.js を使用して、Volto のセットアップと Node.js アプリケーションの設定で問題を再現します。src/server.jsx の 176 行目にブレークポイントを設定し、localhost:3000 にアクセスして、build/server.js での停止位置と要求されたソース位置を比較します。デバッガーがトランスパイルされたファイルではなく src/server.jsx で停止すれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript, node.js, webpack
- 領域
- developer-experience, devtools, tooling
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100