Go implementation of the Rust `dbg` macro
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
.travis.yml Test with WIP Go version Jan 24, 2019
README.md add build status to readme Jan 23, 2019


godbg 🐛 Build Status

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:

package main

import "fmt"

func main() {
    a := 1
    fmt.Printf("My variable: a is equal to: %d", a)


My variable: a is equal to: 1

The new (and better) way

package main

import . "github.com/tylerwince/godbg"

func main() {
    a := 1


[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