eclipse-wildwebdeveloper / eclipse-wildwebdeveloper/wildwebdeveloper

Breakpoint stops in the transpiled js file instead of the source file

オープン
#1,371 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
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:

  • yarn must be installed.
  • Run the commands:
git clone git@github.com:plone/volto.git
cd volto
yarn
Program: /path/to/volto/node_modules/razzle/bin/razzle.js
Arguments: start
Working directory: /path/to/volto
  • On the Environment tab, create a PATH variable and enter the path to the node executable 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.js instead of src/server.jsx

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. 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

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。