For a new user, it’s pretty daunting to determine how to implement source-level debugging of golang executables in Komodo X. One question would be, “Where’s the documentation for Komodo X?” I am trying to grasp the menu system for X while reading documentation that is, what, two revs old? But more specifically I would love it if you guys would create a one page list of what to grasp from the golang repositories, where to put it, and how to implement breakpoints and variable inspection in Komodo X for go. Is that unreasonable?
Hi, as far as I know, we do not have any documentation on creating debug clients, and you may be the first person to ask for any. Fortunately, I have created a few debug clients recently, so I may be able to help you along the way. Check out this blog post, which gives a very high-level overview of creating one: http://komodoide.com/blog/case-study-lua-debugging-in-komodo/. You should be able to do something similar with Go.
Well, I’m sorry to hear that because I looked at an image of a go program running inside Komodo that showed me source-level debugging, line numbers, break points and all that and figured it was a supported feature.
On another level, you may not realize that there is no Mac-platform product that I can find that does offer source-level debugging for go. Maybe VisualStudio for pc users… This is disappointing to me, because I’m just not a good enough experienced enough go programmer to be comfortable without breakpoints and variable value inspection, so I will have to muddle along to solve my problem. But the point is, it represents a commercial opportunity, IMHO.
I found the Lua example while searching for Komodo IDE-related debugging stuff. I then went looking at Lua, to discover that it isn’t the solution to my relatively simple text processing needs. However, I’ll carefully re-read your comments on the blog, and thanks for suggesting it to me.
That said, code completion and syntax highlighting are valuable features in the support of any language in a program editor, and I would still feel that a one pager telling the user community how to do that in Komodo IDE would be a great help. I’ve got directories holding executable versions of geocode, godef, and would be able to fetch godocs if I knew where and how to link their functionality into Komodo.
Where did you see this? I’m guessing you saw a different language, cause we definitely do not support Go debugging atm, and we certainly didnt “fabricate” any screenshots to make it seem that we do.
This is simply because as I said, Go debugging is still in its infancy. For the longest time you could not debug Go at all. There are some solutions starting to pop up now but they all still seem very experimental. We’d want to commit to something stable for Komodo as developing and maintaining debugger integration is a lot of work.
That is a very good point, we’ll continue to monitor the situation around Go for sure.
For sure! As I said we’ll be doing this in the not so distant future.
Just to be clear, and in case someone reads this with some critical bias, I have to report that I did not find an example of komodo IDE using go in debug mode when I looked back into my prior history. My mistake.
Thanks. I had run across that note in Komodo/komodo-go while researching this issue, and thought it might be version 9-specific and taking those steps might corrupt the version X. Good to know that it can still apply. I’ll follow the steps.
We do if you have a properly configured environment. Golang has a VERY specific configuration setup. None of the other languages will work out of the box if they are not configured properly on your system. In other languages like Python, this is as simple as having Python on your system PATH. Go is not that simple.
This boils down to docs which @nathanr has already acknowledged above.
I know what I wanted, and what I was accustomed to in the other language I’m fluent in. I wanted the tools (for my current environment, the Mac) to set breakpoints, examine the state at a stopping point (principally, the current values of variables and the ability to find the values pointed to by variables, maybe set expressions to stop on, that sort of stuff). I regard that as garden variety IDE and I can’t find it for the Mac. Maybe Visual Studio permits you to do that in Go, but I’ve given up my PC environment and am not looking forward to going back to it.
We want this for you too! To clarify, we do not MAKE the debugger. We create an interface that USES the debugger that comes with languages. Currently there is no stable Go debuggers. Maybe this blog post will clarify the issue: https://blog.cloudflare.com/go-has-a-debugger-and-its-awesome/
Note the first line in the blog “Something that often, uh… bugs Go developers is the lack of a proper debugger”.
The debugger that that blog is getting excited about has since been abandoned (last commit was a year ago and doesn’t support the latest version of Go). We cannot work with tools that get abandoned by the community: https://github.com/mailgun/godebug
We will have this tool as soon as we can! We want you to have this stuff too! But it doesn’t exist yet
I hope that clarifies what was already said by @nathanr.