Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tylerwince/godbg
Go implementation of the Rust `dbg` macro
https://github.com/tylerwince/godbg
debug debugging go golang print
Last synced: 23 days ago
JSON representation
Go implementation of the Rust `dbg` macro
- Host: GitHub
- URL: https://github.com/tylerwince/godbg
- Owner: tylerwince
- License: mit
- Created: 2019-01-23T23:51:43.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-04-20T00:52:22.000Z (about 5 years ago)
- Last Synced: 2024-01-08T16:24:56.327Z (5 months ago)
- Topics: debug, debugging, go, golang, print
- Language: Go
- Homepage:
- Size: 13.7 KB
- Stars: 199
- Watchers: 5
- Forks: 10
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-go - godbg - Implementation of Rusts `dbg!` macro for quick and easy debugging during development. (Go Tools / Routers)
- awesome-go - godbg - Implementation of Rusts `dbg!` macro for quick and easy debugging during development. (Go Tools / Routers)
- awesome-go-extra - godbg - 01-23T23:51:43Z|2019-04-20T00:52:22Z| (Go Tools / Routers)
- awesome-go-cn - godbg
- awesome-go - godbg - Implementation of Rusts `dbg!` macro for quick and easy debugging during development. (Go Tools / Routers)
- awesome-go-cn - godbg
- awesome-go-projects - godbg - Implementation of Rusts `dbg!` macro for quick and easy debugging during development. (Go Tools / Routers)
- awesome-go - godbg - Implementation of Rusts `dbg!` macro for quick and easy debugging during development. (Go Tools / Routers)
- awesome-go - godbg - | - | - | (Go Tools / Routers)
- awesome-go - godbg - Implementation of Rusts `dbg!` macro for quick and easy debugging during development. (Go Tools / Routers)
- awesome-go - godbg - Implementation of Rusts `dbg!` macro for quick and easy debugging during development. (Go Tools / Routers)
- go-awesome-cn-star - godbg
- awesome-go-stars - godbg - Implementation of Rusts `dbg!` macro for quick and easy debugging during development. (Go Tools / Routers)
- awesome-go-cn - godbg
- awesome-go-cn - godbg
- awesome-go - godbg - Implementation of Rusts `dbg!` macro for quick and easy debugging during development. (Go Tools / Routers)
- awesome-go-with-stars - godbg - Implementation of Rusts `dbg!` macro for quick and easy debugging during development. (Go Tools / Routers)
- awesome-go - godbg - Implementation of Rusts `dbg!` macro for quick and easy debugging during development. (Go Tools / Routers)
- repo-1316-awesome-go-cn - godbg
- repo-1211-awesome-go-cn - godbg
- awesome-Char - godbg - Implementation of Rusts `dbg!` macro for quick and easy debugging during development. (Go Tools / Routers)
- awesome-reader - godbg - Implementation of Rusts `dbg!` macro for quick and easy debugging during development. (Go Tools / Routers)
- awesome-go - godbg - Implementation of Rusts `dbg!` macro for quick and easy debugging during development. (Go Tools / Routers)
- Go-awesome - godbg - Implementation of Rusts `dbg!` macro for quick and easy debugging during development. (Go Tools / Routers)
- awesome-go-zh - godbg
- awesome-go - godbg - Implementation of Rusts `dbg!` macro for quick and easy debugging during development. (Go Tools / Routers)
- awesome-go - godbg - Implementation of Rusts `dbg!` macro for quick and easy debugging during development. (Go Tools / Routers)
- awesome-go - godbg - Implementation of Rusts `dbg!` macro for quick and easy debugging during development. (Go Tools / Routers)
- awesome-go - godbg - Implementation of Rusts `dbg!` macro for quick and easy debugging during development. (Go Tools / Routers)
- awesome-go - godbg - Implementation of Rusts `dbg!` macro for quick and easy debugging during development. (Go Tools / Routers)
- awesome-go - godbg - Implementation of Rusts `dbg!` macro for quick and easy debugging during development. (Go Tools / Routers)
README
# godbg 🐛 [![Build Status](https://travis-ci.org/tylerwince/godbg.svg?branch=master)](https://travis-ci.org/tylerwince/godbg)
`godbg` is an implementation of the Rust2018 builtin debugging macro `dbg`.
The purpose of this package is to provide a better and more effective workflow for
people who are "print debuggers".`go get github.com/tylerwince/godbg`
## The old way:
```go
package main
import "fmt"
func main() {
a := 1
fmt.Printf("My variable: a is equal to: %d", a)
}```
outputs:```
My variable: a is equal to: 1
```## The _new_ (and better) way
```go
package main
import . "github.com/tylerwince/godbg"
func main() {
a := 1
Dbg(a)
}```
outputs:```
[main.go:7] a = 1
```### This project is a work in progress and all feedback is appreciated.
The next features that are planned are:
- [ ] Tests
- [ ] Fancy Mode (display information about the whole callstack)
- [ ] Performance Optimizations
- [ ] Typing information