getgauge-contrib / gauge-go

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

Add remote debugging option with dlv #29

Closed apssouza22 closed 3 years ago

apssouza22 commented 3 years ago

Fix https://github.com/getgauge-contrib/gauge-go/issues/20

After running the spec in debugging mode you will need to connect to the running process with your IDE. Here one example of how to do it on Intellij

https://kupczynski.info/2020/05/17/remote-debug-go-code.html

sriv commented 3 years ago

Thanks for the PR @apssouza22

However I am unable to make a release right away, since we were using go.cd to build and release the last time, which we do not have anymore.

Gauge itself uses github actions, but as you can see this repo does not have the action setup.

Would you be interested in sending a PR for the actions setup? It would be similar to other plugins.

apssouza22 commented 3 years ago

@sriv Do you have the script for the whole gauge release? The job would be just to set up the GitHub action job on merge?

sriv commented 3 years ago

@apssouza22 you should be able to use the html-report scripts -

apssouza22 commented 3 years ago

@sriv I can work on it but it seems we will require a token from Gauge repo. Is it already set up on this repo?

https://github.com/getgauge/html-report/blob/master/.github/workflows/deploy.yml#L10

https://github.com/getgauge/html-report/blob/master/release.sh#L3

Also what would be the URL to push the artifacts?

sriv commented 3 years ago

Good catch. Repos under getgauge-contrib cannot do this. One of the maintainers need to use their token to make the push.

I'll do it for gauge-go. Apologies for the confusion

sriv commented 3 years ago

I've added the scripts and gauge-go 0.2.0 is released. I still need to update the cache for gauge-repository, there are some tasks that I need to do there for arm64 builds, until then you may not be able to do gauge install for this version. You can still install from file.

apssouza22 commented 3 years ago

@sriv Any idea when this change will be available as part of the golang plugin installation. gauge install go will still be pointing to the old version.

Today the only way to install this version is following this steps:

git clone https://github.com/getgauge-contrib/gauge-go.git
go run build/make.go
go run build/make.go --install
go get github.com/go-delve/delve/cmd/dlv
sriv commented 3 years ago

@apssouza22 - i just made the config change - https://github.com/getgauge/gauge-repository/commit/6436e546d28e1d957897ffa050b0b92745e544a1

sorry, this slipped somehow!

sriv commented 3 years ago

sorry, this slipped somehow!

apssouza22 commented 3 years ago

@sriv will it reflect immediately? I mean, gauge install will install the new version?

zabil commented 3 years ago

@sriv will it reflect immediately? I mean, gauge install will install the new version?

I don't think this merge is published as a release yet. Can you try building from the latest version of this github repo to see if the changes are in?