July 2017
Intermediate to advanced
656 pages
16h 1m
English
Fuge allows us to start a Node process in debug mode (also known as inspect mode).
The process type in the Fuge configuration file (fuge/fuge.yml) indicates any type of executable process that can be be run on the OS (Fuge is not limited to Node, it's programming language independent).
To enable Node debugging, Fuge must be explicitly told that a service is a Node process.
For exploration purposes, let's copy micro/fuge/fuge.yml to micro/fuge/fuge2.yml:
$ cd micro/fuge$ cp fuge.yml fuge2.yml
Then in fuge2.yml we'll change the type field for the adderservice to node as follows:
adderservice: type: node path: ../adderservice run: 'node service.js' ports:- main=8080
Now we'll start up the Fuge shell with the new configuration ...