echo + swag + vscode
I'm building a REST service in #golang and currently have no client so I am relying on my Swagger docs to be able to exercise my endpoints but with my approach to maintain debugging in #vscode I had to rebuild the swagger docs via CLI first.
This is very annoying
After some reading I discovered the tasks.json
for vscode and can execute by adding preLaunchTask
to your debug configuration like this: