It is inevitable that eventually you will encounter a bug in your bot that is difficult to squash. The worst are bugs that don't cause your program to crash and thus don't provide a useful stack trace and line number for where the crash happened. For most issues, the
console.log() method will be enough to help you track down the bug, for the more tenacious bugs however we will need a true debugging environment. This section will introduce you to
Start by installing
npm install -g iron-node
Note again the use of the
-g flag, which installs the application globally.
Before we can start debugging, ...