Skip to content

Latest commit

 

History

History
55 lines (36 loc) · 1.35 KB

DebuggingDapps.md

File metadata and controls

55 lines (36 loc) · 1.35 KB

Debugging Dapps

Requirements:

Important: If you have installed the Crypti Sandbox module before (see node_modules/crypti-sandbox). Please check the version, it must be greater than or equal to 1.0.3. If you have an older version of Crypti sandbox, please run the following commands:

rm -rf node_modules/crypti-sandbox
npm install crypti-sandbox

Debugging is enabled by launching crypti with the DEBUG environment variable assgined with a value of 1, for example:

DEBUG=1 node app.js

Debugging with Node-inspector

Install node-inspector, a debugger interface for Node.js applications:

npm install -g node-inspector

Launch crypti:

DEBUG=1 node app.js

Launch node-inspector:

node-inspector

Debugging with WebStorm

Click on:

Run -> Edit Configurations -> Nodejs Remote Debug

Add a new debugging configuration, using the default settings.

Launch crypti:

DEBUG=1 node app.js

Launch the remote debugger from within WebStorm.