Skip to content

Commit

Permalink
docs: use V8 Inspector Integration for debug
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Jan 16, 2017
1 parent 61d0321 commit 042f42e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Add `egg-bin` to `package.json` scripts:
```json
{
"devDependencies": {
"egg-bin": "1"
"egg-bin": "2"
},
"scripts": {
"dev": "egg-bin dev",
Expand All @@ -61,14 +61,15 @@ $ egg-bin dev
```

##### options

- `--eggPath` egg web framework root path.No default value, must supply.
- `--baseDir` application's root path.default to `process.cwd()`.
- `--port` server port.default to 7001.
- `--cluster` worker process number.default to 1.

### debug

Debug egg app with Chrome Developer Tools by [iron-node].
Debug egg app with [V8 Inspector Integration](https://nodejs.org/api/debugger.html#debugger_v8_inspector_integration_for_node_js).

```bash
$ egg-bin debug
Expand Down

0 comments on commit 042f42e

Please sign in to comment.