readme update - debugging embark
This commit is contained in:
parent
ea2a162d4b
commit
2ffe63a31d
11
README.md
11
README.md
|
@ -213,3 +213,14 @@ LiveReload Plugin
|
||||||
======
|
======
|
||||||
|
|
||||||
Embark works quite well with the LiveReload Plugin
|
Embark works quite well with the LiveReload Plugin
|
||||||
|
|
||||||
|
Debugging embark
|
||||||
|
======
|
||||||
|
Becuase embark is internally using grunt tasks, debugging is not straightforward. Example
|
||||||
|
|
||||||
|
- you want to debug `embark deploy`
|
||||||
|
- normally you would write something like `node-debug -p 7000 embark -- deploy`
|
||||||
|
- This gives you nothing with embark. If you look at `deploy` command in [`./bin/embark`](https://github.com/iurimatias/embark-framework/blob/develop/bin/embark#L32-L35) you will notice that it internally runs grunt task `grunt deploy_contracts:[env]`
|
||||||
|
- with this knoledge we can prepare proper command to start debugging
|
||||||
|
- `node-debug -p 7000 grunt -- deploy_contracts:development`
|
||||||
|
- [here](https://github.com/iurimatias/embark-framework/blob/develop/tasks/tasks.coffee) is list of all debugable grunt tasks
|
||||||
|
|
Loading…
Reference in New Issue