nodejs / nodejs/node

Does/should the REPL support `--inspect`?

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

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

repl
主要言語
JavaScript
スター
122k
フォーク
37.3k
平均マージ
4日 2時間
マージ済み PR(30日)
283

説明

Version

v26.3.0

Subsystem

REPL
debugger

What steps will reproduce the bug?

Run node --inspect and node --interactive --inspect with no script arg.

What is the expected behavior? Why is that the expected behavior?

either:

$ node --inspect
node: REPL does not support --inspect

or:

$ node node --interactive --inspect
node: either --interactive or --inspect can be used, not both

similar to:

node --watch --check src/app.js
node: either --watch or --check can be used, not both

Even if it technically works, I can't see how it works in any useful way.

What do you see instead?
$ node --inspect
Debugger listening on ws://127.0.0.1:9229/d36505e9-1fcd-4b1f-b43e-0f2dd295526e
For help, see: https://nodejs.org/learn/getting-started/debugging
Welcome to Node.js v26.3.0.
Type ".help" for more information.
> 
$ node --interactive --inspect
Debugger listening on ws://127.0.0.1:9229/b6961d01-7632-4ec1-b091-ee6b9026513a
For help, see: https://nodejs.org/learn/getting-started/debugging
Welcome to Node.js v26.3.0.
Type ".help" for more information.
> 

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

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

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、スクリプトなしで node --inspectnode --interactive --inspect を再現し、その後 REPL とデバッガーのオプション処理を確認します。既存の --watch/--check の競合例と動作を比較します。両方の呼び出しで選択した動作に一貫性があり、報告された出力に照らして検証できれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript, node.js
領域
cli, devtools
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
48/100

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

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