【功能需求】--inspect-brk 支持指定 debugger ip 和 port

Open
#271 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
node.js, typescript
Domain
cli, devtools

Research direction

Start at the egg-bin dev entry point and trace how the --inspect-brk option is parsed and passed to Node.js. Read the referenced Node.js debugging options, then verify that egg-bin dev accepts --inspect-brk=0.0.0.0:9999 and uses the requested debugger IP and port.

Written by the indexing model from the issue text.

Description

现状:

目前 --inspect-brk 选项无法支持自定义 ip 和 port,对于一些需要开启远程调试或者定制端口的场景,无法满足需求。

期望:

能够支持形如egg-bin dev --inspect-brk=0.0.0.0:9999 指定 debugger 的 ip 和 port 的配置方式。

参考 nodejs 的 options:https://nodejs.org/en/learn/getting-started/debugging#enabling-remote-debugging-scenarios

Dominant language
TypeScript
Stars
191
Forks
52
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from eggjs/bin

All issues in eggjs/bin

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.