Giter VIP home page Giter VIP logo

think-laradumps's Introduction

think-laradumps

debug tool Using Laradumps App in ThinkPHP6

LaraDumps


LaraDumps Windows App LaraDumps MacOS App LaraDumps Linux App

Click on your OS logo to download the Desktop App.

Available for Windows, Linux and macOS.

📚 Documentation


安装

$ composer require yangweijie/think-laradumps --dev -vvv

用法

👋 Hello Dev,


Get Started

Requirements

PHP 7.2+ and ThinkPHP5.0+

5.0 要手动复制 config/config.php 到 项目根目录 config/laradumps.php

Usage

  1. 配置 LaraDumps :

编辑 安装扩展后自动创建的 laradumps 配置文件

  1. 调试你的代码通过使用 ds() 和 ThinkPHP 应用里的 trace 一样使用。

dsd == halt

  1. 运行应用,然后看到调试的信息在 LaraDumps App 窗口里。

Here's an example:

Route::get('/', function () {
    ds('Home page accessed!');
    return view('home');
});
ds('')->phpinfo();
ds()->table([['id'=1,'name'=>'a']], 'table');
ds()->time('event');
ds()->stopTime('event');
ds('调试信息1')->s('tab1'); // 可以输出不同调试到不同tab

至于显示日志功能,和监听sql,再考虑要不要实现,因为目前这个函数输出的是和ThinkPHP log 独立开来的。 要高度扩展,可以实现基于本库再实现一个log 的驱动,倒时候配置database 的 trace 就行了。

License

MIT

think-laradumps's People

Contributors

yangweijie avatar

Stargazers

 avatar  avatar frankfanslc avatar

Watchers

James Cloos avatar  avatar  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.