Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

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

未關閉
#64,121 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
3/5
預估耗時
1-2 天
新手友好度
48/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
冷清
技術堆疊
javascript, node.js
領域
cli, devtools

研究方向

先在沒有腳本的情況下重現 node --inspect 和 node --interactive --inspect,然後閱讀 REPL 和偵錯器選項的處理方式。將其行為與現有的 --watch/--check 衝突範例進行比較。當選定的行為對兩種呼叫都一致,並且已根據回報的輸出完成驗證時,即視為完成。

由索引模型根據 Issue 內容生成。

描述

repl
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.
> 
主要語言
JavaScript
星號
122k
分支
37.4k
平均合併
4 天 2 小時
30 天內合併 PR
277

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

nodejs/node 的其他 Issue

查看 nodejs/node 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。