getgauge-contrib / gauge-go

Go language plugin for Gauge
GNU General Public License v3.0
71 stars 21 forks source link

Able to debug gauge spec #20

Closed thu2004 closed 3 years ago

thu2004 commented 5 years ago

Is it possible to add support for debugging gauge spec for golang ? How much effort will it take ? Any plan to implement it ?

zabil commented 5 years ago

There are no plans to support this at the moment. However it should be easy to add debug support on VS Code. Please reach out on the Gitter channel for support if you want to pick this up and send a pull request.

apssouza22 commented 4 years ago

@zabil Considering that the other languages use remote debugging in order to debug specs, how would it be done with this runner? Could you give some directions on how this would be done? I would be willing to open PR if changes are required

sriv commented 4 years ago

hi @apssouza22

at a very high level, I think the best way would be to wire up delve. From delve's usage doc the executable needs to be launched by dlv.

That should bring up a dlv server and any dlv client should then be able to attach itself. I see that vscode-go has support for debugging golang programs using dlv. That should be a good fit, given gauge supports vscode via an extension.

Hope this gives you some direction? Feel free to ask more, happy to help!

apssouza22 commented 3 years ago

Support added here https://github.com/getgauge-contrib/gauge-go/pull/29