readme update - debugging embark

This commit is contained in:
Marek Kotewicz 2015-07-09 08:55:45 +02:00
parent ea2a162d4b
commit 2ffe63a31d
1 changed files with 11 additions and 0 deletions

View File

@ -213,3 +213,14 @@ 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