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

Support for debugging (this has been implemented) #25

Closed
alexandre-normand opened this Issue Jun 2, 2011 · 34 comments

Comments

Projects
None yet
@alexandre-normand
Contributor

alexandre-normand commented Jun 2, 2011

It should be possible to implement the idea debugger interface and integrate with gdb to debug go programs from IDEA.

@alexandre-normand

This comment has been minimized.

Contributor

alexandre-normand commented Jun 2, 2011

I'm really interested in working on this after I'm done with the Makefile build system. I'll assign it to myself but feel free to take it if you think I'm not going fast enough ;)

@mtoader

This comment has been minimized.

Member

mtoader commented Jun 2, 2011

I know that the go sdk can build programs with debugging support (aka. debuggable by gdb :)). This should let us debug go programs :). I would love for you to work on this. Once i'm happy with the completion things i will also try to help you. :)

@tomnewton

This comment has been minimized.

tomnewton commented Sep 5, 2012

Are you guys still planning to work on this?

@mtoader

This comment has been minimized.

Member

mtoader commented Sep 5, 2012

Hi Tom,

Is still on the roadmap but there is no time for it yet. I'm in the process of moving and don't have so much time to work on this.

@trungpham

This comment has been minimized.

trungpham commented Sep 23, 2012

is this something relatively easy to implement?

I don't really see any other GoLang IDE that has an integrated debugger either

@netvl

This comment has been minimized.

netvl commented Sep 23, 2012

This is certainly not something easy. Debugging Go programs mean debugging native code, and this very different from debugging VM languages (e.g. Java) which usually have builtin debug support. Easiest path I think is to integrate support for GDB (this is how most Linux or even crossplatform IDEs for C/C++ work), however, this is certainly not simple and it may have problems with cross-platform portability. I think this approach is possible to observe in C/C++ IDEA plugin, though it will certainly require significant changes to work for Go.
So you have to use GDB directly or one of its wrappers if you really need to debug Go code in nearest future.

@mtoader

This comment has been minimized.

Member

mtoader commented Sep 23, 2012

Yep. This is correct Vladimir.

The correct way is to implement the debugger interfaces in inteliij and to hook them to a running gdb process. It's not trivial but it's not that complicated either. It just needs time (which i'm in short supply atm unfortunately).

@imosquera

This comment has been minimized.

imosquera commented Oct 15, 2013

Hey guys, I was wondering if gdb support ever got integrated into the master branch of this project or if there was a status. I can say as a golang dev this is a feature in high demand.

@mtoader

This comment has been minimized.

Member

mtoader commented Oct 15, 2013

Unfortunately it was not.

@laomoi

This comment has been minimized.

laomoi commented Nov 29, 2013

Debugger integrated in the intellij IDEA is highly demanded! Do you have any plan on this?

@mtoader

This comment has been minimized.

Member

mtoader commented Nov 29, 2013

The plan is to get people to help :).

@VISTALL

This comment has been minimized.

VISTALL commented Dec 16, 2013

@mtoader Maybe be it help. Some guy already impl gdb in intellij. See https://bitbucket.org/spencercw/ideagdb/overview

@mtoader

This comment has been minimized.

Member

mtoader commented Dec 16, 2013

@VISTALL

This comment has been minimized.

VISTALL commented Dec 16, 2013

Yeah. I known it. Bad that me refused idea.

Maybe later i ill give more time for go + gdb. Problem - i dont wana create duplicate code only for google go.

Ah, about gae, maybe u found some interest https://github.com/consulo/consulo-google-app-engine-api

Regards

@dlsniper

This comment has been minimized.

Member

dlsniper commented Dec 16, 2013

I'll try and tackle the issue with debugging up soon. I've just finished porting the plugin to non-IDEA IDEs, see #303, and I need to run some tests for it.

@dlsniper

This comment has been minimized.

Member

dlsniper commented Dec 16, 2013

As for Google Apps Engine suport, the plugin already has it, albeit I'm not able to test it.

@ghost ghost assigned mtoader and dlsniper Dec 28, 2013

@alexandre-normand alexandre-normand referenced this issue Feb 6, 2014

Merged

Improve debugger parser #565

6 of 8 tasks complete

@mtoader mtoader closed this in 3a21e14 Feb 24, 2014

@svalleru

This comment has been minimized.

svalleru commented May 5, 2014

+1 for go lang debugger support on IntelliJ Idea

@dlsniper

This comment has been minimized.

Member

dlsniper commented May 5, 2014

@shankarvalleru I like the enthusiasm so... get the build from master, from my dropbox (see link in readme) or wait for 0.9.16 :) But remember, it's going to be only as good as gdb is for go.

@svalleru

This comment has been minimized.

svalleru commented May 5, 2014

@dlsniper thanks alot

@mlmasterson

This comment has been minimized.

mlmasterson commented Aug 25, 2014

looking forward to this!

@dlsniper

This comment has been minimized.

Member

dlsniper commented Aug 25, 2014

@mlmasterson you can check the build from my dropbox. Unfortunately, it works as good as gdb + go will work so sorry :)

@prsolucoes

This comment has been minimized.

prsolucoes commented Jul 10, 2015

+1 debugger

@dlsniper

This comment has been minimized.

Member

dlsniper commented Jul 10, 2015

@prsolucoes what's the point of +1-ing a closed issue? Do you suggest you'd like to work on it? If so, please have a look at the PR for delve which is a work in progress #1640

@ignatov ignatov reopened this Jul 29, 2015

@ignatov

This comment has been minimized.

Contributor

ignatov commented Aug 20, 2015

The latest nightly build contains dlv integration.

@ignatov ignatov closed this Aug 20, 2015

@ignatov ignatov modified the milestones: 1.0.0, 0.9.16 Aug 20, 2015

@ignatov ignatov assigned ignatov and unassigned dlsniper Aug 20, 2015

@svalleru

This comment has been minimized.

svalleru commented Aug 20, 2015

@ignatov, that's great, where to get the nightly build ?

@dlsniper

This comment has been minimized.

Member

dlsniper commented Aug 20, 2015

@svalleru please read the instructions in the README: https://github.com/go-lang-plugin-org/go-lang-idea-plugin#pre-release-builds Also keep in mind that there are some issues that might appear that are not catched yet or are part of delve itself. If you do encounter such issues, please open an issue for them (if they are not reported already). Thank you.

@svalleru

This comment has been minimized.

svalleru commented Aug 20, 2015

Sure thing.

@aaa4xu

This comment has been minimized.

aaa4xu commented Aug 21, 2015

Any instructions about starting debug with dlv? I'm downloaded latest nightly build and Debug button is disabled

@dlsniper

This comment has been minimized.

Member

dlsniper commented Aug 21, 2015

I'll add the instructions soon. Delve only supports Linux and Mac OS X

@dlsniper

This comment has been minimized.

Member

dlsniper commented Aug 21, 2015

@aaa4xu and everyone else who's wondering how the integration works: Please make sure you are running on a supported IDE (see the README in the root of the project), open your project, set the breakpoints you want and then press the Debug option instead of the run option. You need to create a run configuration of type Go Application as a Run configuration of type Go file is not supported yet (the debug button is disabled for that configuration).

Hope it helps.

@pylover

This comment has been minimized.

pylover commented Oct 6, 2015

+10000 for supporting debug

@zolotov

This comment has been minimized.

Contributor

zolotov commented Oct 6, 2015

@pylover it's been implemented month ago

@dlsniper

This comment has been minimized.

Member

dlsniper commented Oct 6, 2015

@pylover I'm sorry but clearly you haven't read the README nor the comment above. Delve support is currently implemented and working (on the platforms delve is working).

@pylover

This comment has been minimized.

pylover commented Oct 6, 2015

Thanks a lot, i'll read it

@dlsniper dlsniper changed the title from Support for debugging to Support for debugging (this has been implemented) Oct 6, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment