Debugging Gekko
#1
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!
  Reply
#2
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"
           ]
       }
   ]
}
If it isn't crypto, it isn't worth mining, it isn't worth speculating.
https://www.youtube.com/c/crypto49er
  Reply
#3
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.
  Reply
#4
You're welcome! That link you provided should help others as well.
If it isn't crypto, it isn't worth mining, it isn't worth speculating.
https://www.youtube.com/c/crypto49er
  Reply


Forum Jump:


Users browsing this thread: