Gekko Forum
Debugging Gekko - Printable Version

+- Gekko Forum (https://forum.gekko.wizb.it)
+-- Forum: Gekko (https://forum.gekko.wizb.it/forum-13.html)
+--- Forum: Technical Discussion (https://forum.gekko.wizb.it/forum-23.html)
+--- Thread: Debugging Gekko (/thread-57451.html)



Debugging Gekko - faldor - 07-27-2018

Hey all! I come from a Java/C# coding background and had a few questions around javascript/nodejs.

What do you use for debugging Gekko? I have made quite a few changes to my Gekko branch and the problems I have come across have been painful without a proper debugging technique.

What IDE is good for Debugging/stepping through code with javascript/nodejs? I have been using Visual Studio Code with no plugins. It has been nice for navigating files in the folder structure and coding, but need to have debugging setup in place.

Thanks and appreciate any feedback!


RE: Debugging Gekko - crypto49er - 07-28-2018

You can use Visual Studio Code for debugging. Just add the Gekko folder to a workspace, then go to debug open configurations and put this in there (add your config file). I will probably make a video on how to do this next week. 

Code:
{
   // 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", "your-config-file.js"
           ]
       }
   ]
}



RE: Debugging Gekko - faldor - 07-28-2018

I just found this also (in case anyone else is wondering the same in the meantime) https://github.com/Microsoft/vscode/issues/32240. I am now in VSCode debugging, thank you! Look forward to the debugging video if you get that going.


RE: Debugging Gekko - crypto49er - 07-28-2018

You're welcome! That link you provided should help others as well.