Skip to content
This repository has been archived by the owner on May 22, 2020. It is now read-only.

Debugging

whyn07m3 edited this page Sep 18, 2017 · 11 revisions

Source: https://github.com/electron/electron/blob/v1.6.11/docs/tutorial/debugging-main-process-node-inspector.md

Note: this is a stripped-down version of instructions that works. If you experience problems, refer to the source above

Note: works on v6, v7 and v8

Setting up:

  1. Node (v6.11.0)
  2. npm install node-inspector (v1.1.1) in your HadoukenIO/core directory

Running:

  1. Launch an OpenFin app with "arguments": "--debug=5858" in app config
  2. Launch the installed node-inspector

set ELECTRON_RUN_AS_NODE=true && "/Path/To/Built/Runtime/ExeFile/openfin.exe" "/Path/To/HadoukenIO-core/node_modules/node-inspector/bin/inspector.js"

  1. Console should read: Visit http://127.0.0.1:8080/?port=5858 to start debugging
Clone this wiki locally