Giter Site home page Giter Site logo

debugger's Introduction

DEBUGGER

Golang debugger graphical user interface. Built on Delve debugger. It aims to provide a similar user experience to Chrome developer tools.

Features

  • Source code view
  • Breakpoints (Add, remove, activate, deactivate)
  • Disassmbly panel
  • Watches
  • List of functions
  • List of types
  • List of Open files by the process
  • Show Process ID
  • Shows Process current working directory
  • Compiles go module executable or tests
  • Recompile and restart the process when changes are detected
  • Stack trace panel, listing all go routines
  • List of packages, and links to package documentation
  • List of source files
  • Memory statistics

Supported OSs

  • Linux: tested on Archlinux machine with go-1.19/amd64

Installation

Prerequisites

  • Project depends on Gio package. make sure you install it's dependencies https://gioui.org/doc/install
  • Install debugger latest version using go install
go install github.com/emad-elsaid/debugger@latest

Getting Started

Debug binary

debugger run <package-path> <compile-arguments> -- <runtime-argument>
  • arguments before -- is passed to go build command.
  • arguments after -- is passed to your program.

Examples:

Compile and debug the package in current directory

debugger run .

Compile and debug package in cmd/cli/ directory

debugger run ./cmd/cli/

Compile and debug current package and pass --secure=false to the program

debugger run . -- --secure=false

Test binary

debugger test <package-path> <compile-arguments> -- <runtime-argument>

Dependencies

  • fsnotify
  • Delve
  • Gioui

Contributing

Code contributions

  • Fork
  • Branch
  • Add proof of concept for your feature to get the conversation started
  • Open Pull request with your changes
  • Discuss the idea and the POC
  • Continue until the PR is in a good shape for merging

Feature requests

  • Open an issue with the idea state the following:
    • Problem statement
    • List of solutions
    • Preferred solution
    • Why this solution was choosen?

License

This project is published under the MIT license

debugger's People

Contributors

emad-elsaid avatar jackmordaunt avatar

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.