Gekko Trading Bot - Debug via Visual Studio Code

in #gekko6 years ago

In today's video, I will show you how to setup Gekko in Visual Studio Code so you can debug crashes and errors in Gekko.

Here are step by step instructions on how to setup Gekko in VS Code:

  1. File, Add Folder to Workspace, add the Gekko folder.
  2. Debug, Open Configurations, under “Select Environment”, choose Node.js.
  3. In the launch.json file that opens, copy and paste this code: (In the “args” field, replace with your config file). Apparently, I can add all the code in the description below but not greater than or less than sign, ugh.

{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"program": "${workspaceFolder}/gekko.js",
"args": [
"--config", "config-live.js"
]
}
]
}

  1. Save the file.
  2. File, Save Workspace as, save the workspace file outside of the Gekko folder.
  3. Start debugging (F5).

UpVoteFollowResteem.gif