vWatch64
delve
Our great sponsors
vWatch64 | delve | |
---|---|---|
1 | 29 | |
17 | 18,470 | |
- | 1.5% | |
1.5 | 9.3 | |
7 months ago | 4 days ago | |
BASIC | Go | |
GNU Lesser General Public License v3.0 only | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
vWatch64
-
Another Bug in the code
Where's the error at? Did you try running it with vWatch64 and seeing what happens?
delve
-
DEBUG A KUBERNETES OPERATOR WRITTEN IN GO
It’s awesome to use the powerful DELVE debugger for GO inside Visual Studio Code when you build a GO Operator. 🙂
-
Anyone figured out DAP for golang?
dap.adapters.go = function(callback, _) local stdout = vim.loop.new_pipe(false) local handle local pid_or_err local port = 38697 local opts = { stdio = { nil, stdout }, args = { "dap", "-l", "127.0.0.1:" .. port }, detached = true, } handle, pid_or_err = vim.loop.spawn("dlv", opts, function(code) stdout:close() handle:close() if code ~= 0 then print("dlv exited with code", code) end end) assert(handle, "Error running dlv: " .. tostring(pid_or_err)) stdout:read_start(function(err, chunk) assert(not err, err) if chunk then vim.schedule(function() require("dap.repl").append(chunk) end) end end) -- Wait for delve to start vim.defer_fn(function() callback { type = "server", host = "127.0.0.1", port = port } end, 100) end -- https://github.com/go-delve/delve/blob/master/Documentation/usage/dlv_dap.md dap.configurations.go = { { type = "go", name = "Debug", request = "launch", program = "${file}", }, { type = "go", name = "Debug test", -- configuration for debugging test files request = "launch", mode = "test", program = "${file}", }, -- works with go.mod packages and sub packages { type = "go", name = "Debug test (go.mod)", request = "launch", mode = "test", program = "./${relativeFileDirname}", }, } ```
-
What's your Golang IDE?
I’ve found Delve (debugging tool) quite useful for Emacs. It uses the plugin from VS Code, so you might be halfway there already? Figure out what you need to configure in Emacs for debugging here.
-
Golang Debugging with Delve - [Step by Step]
In this article we are going to see how to debug Go (Golang) programs using Delve. Delve is a third-party debugger for the Go programming language and it’s available on github https://github.com/go-delve/delve. It’s a valid alternative to the GDB golang debugger (https://golang.org/doc/gdb) as it’s more feature rich as mentioned in the official Go GDB website
-
I look for a "Rosetta" documentation to found correspondence between languages tooling
For Go, Delve is pretty popular.
-
dumb question: Debugging Go in terminal?
I mean delve does do that, similar to gdb: https://github.com/go-delve/delve/blob/master/Documentation/cli/README.md
-
Delve 1.8.0 is our Xmas present
Delve 1.8.0 is out now. I can't wait until tomorrow, so I'll be unwrapping this :-) Thanks Derek, very much appreciated! https://github.com/go-delve/delve/releases/tag/v1.8.0
I see this: https://github.com/go-delve/delve/pull/2703
-
Tokio Console
Go also has pretty good out of the box profiling (pprof[0]) and third-party runtime debugging (delv[1]) that can be used both remotely and local.
These tools also have decent editor integration and can be use hand in hand:
https://blog.jetbrains.com/go/2019/04/03/profiling-go-applic...
https://blog.jetbrains.com/go/2020/03/03/how-to-find-gorouti...
-
Go on M1 macs?
Initially there were some issues with delve (and there still are different ones e.g. https://github.com/go-delve/delve/issues/2277). But other that it has been fine.
What are some alternatives?
air - ☁️ Live reload for Go apps
go-debug
go-sitemap-generator - go-sitemap-generator is the easiest way to generate Sitemaps in Go
mongo-go-pagination - Golang Mongodb Pagination for official mongodb/mongo-go-driver package which supports both normal queries and Aggregation pipelines with all information like Total records, Page, Per Page, Previous, Next, Total Page and query results.
gorequest - GoRequest -- Simplified HTTP client ( inspired by nodejs SuperAgent )
fzf - :cherry_blossom: A command-line fuzzy finder
vim-go - Go development plugin for Vim
vscode-go - Go extension for Visual Studio Code
godotenv - A Go port of Ruby's dotenv library (Loads environment variables from `.env`.)
gohper
fastlz - Wrap over FastLz for GoLang
filetype - Fast, dependency-free Go package to infer binary file types based on the magic numbers header signature