Hey <@U03RSG5ST1Q> how do I go about debugging for...
# contributors
h
Hey @bland-eye-99092 how do I go about debugging for the scrypt hashing algorithm PR, I am brand new to Go. By the way it is definitely something wrong with code I tried several different passwords and salts nothing worked.
b
Hi Landon, this depends a little on your editor setup. Which IDE are you using?
h
I am using VS Code
b
Okay, so we don’t have an official guide for VS Code yet, but the set-up is quite standard: First, you’ll want to install the
Go
extension, read more about that here: https://code.visualstudio.com/docs/languages/go Now you’ll need to set-up the testing parameters to start the tests correctly. You do this, by adding
"go.testTags": "sqlite,json1",
to your
settings.json
(press Ctrl+P or CMD+P and chose
Preferences: Open user settings (JSON)
. Now paste
"go.testTags": "sqlite,json1",
into it and save. To debug the test go to
identity/handler_test.go
and scroll to the line where your tests is, should be 270. Set a break-point inside your test case, and choose
Go: Debug Test At Cursor
from the context menu (right click inside your testcase). Now you should be able to debug the test using the default VSCode interface.
h
Thank you!