Coder Social home page Coder Social logo

Comments (34)

alexandre-normand avatar alexandre-normand commented on June 9, 2024

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 ;)

from go-lang-idea-plugin.

mtoader avatar mtoader commented on June 9, 2024

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. :)

from go-lang-idea-plugin.

tomnewton avatar tomnewton commented on June 9, 2024

Are you guys still planning to work on this?

from go-lang-idea-plugin.

mtoader avatar mtoader commented on June 9, 2024

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.

from go-lang-idea-plugin.

trungpham avatar trungpham commented on June 9, 2024

is this something relatively easy to implement?

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

from go-lang-idea-plugin.

netvl avatar netvl commented on June 9, 2024

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.

from go-lang-idea-plugin.

mtoader avatar mtoader commented on June 9, 2024

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).

from go-lang-idea-plugin.

imosquera avatar imosquera commented on June 9, 2024

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.

from go-lang-idea-plugin.

mtoader avatar mtoader commented on June 9, 2024

Unfortunately it was not.

from go-lang-idea-plugin.

laomoi avatar laomoi commented on June 9, 2024

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

from go-lang-idea-plugin.

mtoader avatar mtoader commented on June 9, 2024

The plan is to get people to help :).

from go-lang-idea-plugin.

VISTALL avatar VISTALL commented on June 9, 2024

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

from go-lang-idea-plugin.

mtoader avatar mtoader commented on June 9, 2024

There is also up to date code from Maxim here: https://github.com/nicity/CppTools/tree/master/src/com/advancedtools/cpp/debugger

from go-lang-idea-plugin.

VISTALL avatar VISTALL commented on June 9, 2024

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

from go-lang-idea-plugin.

dlsniper avatar dlsniper commented on June 9, 2024

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.

from go-lang-idea-plugin.

dlsniper avatar dlsniper commented on June 9, 2024

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

from go-lang-idea-plugin.

svalleru avatar svalleru commented on June 9, 2024

+1 for go lang debugger support on IntelliJ Idea

from go-lang-idea-plugin.

dlsniper avatar dlsniper commented on June 9, 2024

@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.

from go-lang-idea-plugin.

svalleru avatar svalleru commented on June 9, 2024

@dlsniper thanks alot

from go-lang-idea-plugin.

mlmasterson avatar mlmasterson commented on June 9, 2024

looking forward to this!

from go-lang-idea-plugin.

dlsniper avatar dlsniper commented on June 9, 2024

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

from go-lang-idea-plugin.

paulocoutinhox avatar paulocoutinhox commented on June 9, 2024

+1 debugger

from go-lang-idea-plugin.

dlsniper avatar dlsniper commented on June 9, 2024

@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

from go-lang-idea-plugin.

ignatov avatar ignatov commented on June 9, 2024

The latest nightly build contains dlv integration.

from go-lang-idea-plugin.

svalleru avatar svalleru commented on June 9, 2024

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

from go-lang-idea-plugin.

dlsniper avatar dlsniper commented on June 9, 2024

@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.

from go-lang-idea-plugin.

svalleru avatar svalleru commented on June 9, 2024

Sure thing.

from go-lang-idea-plugin.

aaa4xu avatar aaa4xu commented on June 9, 2024

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

from go-lang-idea-plugin.

dlsniper avatar dlsniper commented on June 9, 2024

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

from go-lang-idea-plugin.

dlsniper avatar dlsniper commented on June 9, 2024

@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.

from go-lang-idea-plugin.

pylover avatar pylover commented on June 9, 2024

+10000 for supporting debug

from go-lang-idea-plugin.

zolotov avatar zolotov commented on June 9, 2024

@pylover it's been implemented month ago

from go-lang-idea-plugin.

dlsniper avatar dlsniper commented on June 9, 2024

@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).

from go-lang-idea-plugin.

pylover avatar pylover commented on June 9, 2024

Thanks a lot, i'll read it

from go-lang-idea-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.