Giter Site home page Giter Site logo

debug's Introduction

说明

一个很简单到程序调试诊断用的工具库。

提供了以下几种常用工具:

  1. 打印输出变量值,用于程序调试,打印的时候除了变量值之外还会带上堆栈跟踪,这样才不会找不到信息出处的来源
  2. 变量值的输出支持递归引用形式,不会出现死循环,同时支持输出指针的指向。
  3. 获取调用栈的信息,跟runtime/debug里面打印调用栈不一样的地方是,这里的调用栈会以对象形式返回,可以延长输出内容,或者序列化到日志文件中
  4. GODEBUG环境变量解析,Go有一个GODEBUG环境变量可以用来设置调试相关参数,但是runtime/debug中没有提供访问接口
  5. 程序条件暂停功能

debug's People

Contributors

bg5sbk avatar cannium 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.