Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could I run and debug REVEL inside Eclipse ? #95

Closed
tinchen opened this issue Mar 7, 2013 · 13 comments
Closed

Could I run and debug REVEL inside Eclipse ? #95

tinchen opened this issue Mar 7, 2013 · 13 comments

Comments

@tinchen
Copy link

tinchen commented Mar 7, 2013

Hi robig:

Thanks a lot for your great work, I like REVEL very much.
It works fine but could I run and debug REVEL inside Eclipse ?
Or could I attach debugger to the running REVEL application ?

Cheers,

Tin

@robfig
Copy link
Contributor

robfig commented Mar 8, 2013

Hi,
I have not tried to use Eclipse for Go development before. I will try to set it up and see if / how it works -- do you use GoClipse, or regular Eclipse? I think that it should be possible..
Thanks!
-Rob

@tinchen
Copy link
Author

tinchen commented Mar 9, 2013

Hi,

Thanks for your reply so quickly, I tried to use GoClipse (http://goo.gl/AwXR8) , it can run and debug regular Go app well.

Thank you very much !

Tin

@brendensoares
Copy link
Member

@tinchen have you tried running revel in GoClipse? How might GoClipse support Revel? Are you asking to be able to insert breakpoints in the IDE and then be able to step through them while running Revel?

@robfig I think this issue needs to be closed. There isn't any actionable items as far as I can tell and the issue is rather stale.

@robfig
Copy link
Contributor

robfig commented Dec 2, 2013

Agreed

@robfig robfig closed this as completed Dec 2, 2013
@jrem
Copy link

jrem commented Feb 3, 2014

Has anyone ever been able to debug a revel application within GoClipse? Can it in fact be done? It seems that revel applications have a different structure than other go applications thus it is unclear how to configure eclipse to debug a revel application. A screenshot proving it is indeed possible would be good, along with a recipe on how to achieve the result. I guess the developers of revel are using different debugging techniques.

An actionable item would be a screenshot showing some code paused in the debugger and how it was achieved, or, if its something that can't be done at this present time, a reason why not (and update the answer when (if) it does later become possible.)

@jrem
Copy link

jrem commented Feb 3, 2014

I suspect the goclipse plugin would need to be extended to have a revel application configuration added, I guess a feature request to that project would get the ball rolling.

@brendensoares
Copy link
Member

@jrem a recipe would definitely be great, but I won't be able to contribute such since I don't use eclipse or similar IDE; I use vim and the command line.

Anyone else in a position to contribute to this research would be warmly welcomed.

@jrem
Copy link

jrem commented Feb 11, 2014

I am very used to graphical debuggers, setting breakpoints and examining variables helps me reason what the code is doing, what variables are in scope and their values, I guess when on the leading edge debuggers aren't always yet available. Just tried github.com/sirnewton01/godbg, almost works, but not quite, oh well. A section in the docs about what debugging techniques are known to work would be helpful.

@brendensoares
Copy link
Member

@jrem agreed, documentation would be helpful if we could collect such information from the community. Would you be willing to try any other debuggers and report your findings?

@jrem
Copy link

jrem commented Feb 12, 2014

Actually godbg does work, just needed the right parameters and to remember to "revel run theapp" after any code changes so it gets recompiled, and binary/src match, although the displayed variables are a little terse, and the overall process can be a bit flakey. github.com/davecgh/go-spew, godoc.org/github.com/emicklei/hopwatch (uses go-spew underneath), also work well especially to pretty-print the variables which is mostly what I was after.

For now, I'll use these, and will check each release of goclipse to see if/when it starts working.

@brendensoares brendensoares added this to the v0.10 milestone Feb 13, 2014
@brendensoares
Copy link
Member

I started looking into gdb in general and it seems Go has good support for it, so at this point it's just a matter of making it easier to debug Go code. https://github.com/sirnewton01 has godev and godbg which seems like a great start.

As far as we're concerned, goclipse needs to figure out gdb support on their own as we can't afford the time to support IDE features. Though like you said, revel can already be debugged in a bare bones way, so it's just a matter of waiting for the IDEs to catch up.

I've scheduled this for v0.10 in the hopes of figuring out a official "Revel app debugging" solution.

@brendensoares brendensoares removed this from the v0.10 milestone Feb 25, 2014
@brendensoares
Copy link
Member

I'll create a new issue for a more general, non-IDE specific debugging solution.

@brendensoares
Copy link
Member

#294

kumakichi pushed a commit to kumakichi/revel that referenced this issue Nov 2, 2018
Made develop mode autorun on start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants