Code Monkey home page Code Monkey logo

php-console's Introduction

使用

  • 下载文件
  • 直接加载插件源码(方便修改), 直接加载chrome-extension-src/gaki目录即可, 点击背景页即可打开插件console面板 image
  • 引入Console.php使用, 可直接include, 或者根据框架的autoloader使用
include 'Console.php'

Console::log(array(4, 5,6));
Console::error("xxxxxxx");
Console::info("kkkkkkkk");
Console::warn("ttttttttt");

image

配置

  • 直接修改Console.php, 找到$_config 将host指向你的电脑
    protected static $_config = array(
        'host' => '172.21.104.60',//chrome 插件 服务器 即你的浏览器所在的ip
        'port' => '3003'//chrome 插件监听的端口 无需修改
    );
  • 或者通过Console::setConfig("你的ip")配置

示例

  • 找到框架的db处理地方打印sql, 可在执行sql处执行Console::logSql($sql)打印执行栈;

说明

  • 代码文件只有两个, Console.php, chrome插件源码在chrome-extension-src/js里

php-console's People

Contributors

cyuxlif avatar

Stargazers

 avatar  avatar

Watchers

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