GithubHelp home page GithubHelp logo

elinmey / sdebug Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mabu233/sdebug

0.0 1.0 0.0 6.76 MB

Xdebug — Step Debugger and Debugging Aid for PHP

Home Page: https://xdebug.org

License: Other

Batchfile 0.42% Shell 0.17% Makefile 0.12% M4 0.53% JavaScript 0.04% PHP 65.31% Vim Script 0.12% C 33.05% C++ 0.15% HTML 0.10%

sdebug's Introduction

进度

注意事项

  • 为了避免 swoole 的检测 xdebug 警告, 扩展注册的名称是 sdebug, 如果想使用 Phpunit CodeCoverage , 需要手动把检测 xdebug 的判断修改成 sdebug
  • 单步调试: 如果php不是7.3的, 建议使用 sdebug_2_6(https://github.com/mabu233/sdebug/tree/sdebug), sdebug_2_7 可能需要与phpstorm2019搭配使用

Clone

You can clone the Sdebug source directory with:

git clone https://github.com/mabu233/sdebug.git

Then move into this new directory:

cd sdebug

Compile

If PHP is installed in a normal, and uncomplicated way, with default locations and configuration, all you will need to do is to run the following script:

./rebuild.sh

This will run phpize, ./configure, make clean, make and make install.

The long winded way of installation is:

  1. Run phpize: phpize (or /path/to/phpize if phpize is not in your path).

  2. ./configure --enable-xdebug (or: ../configure --enable-xdebug --with-php-config=/path/to/php-config if php-config is not in your path)

  3. Run: make clean

  4. Run: make

  5. Run: make install

  6. Add the following line to php.ini (which you can find by running php --ini, or look at phpinfo() output): zend_extension="xdebug.so".

    Please note, that sometimes the php.ini file is different for the command line and for your web server. Make sure you pick the right one.

  7. Unless you exclusively use the command line with PHP, restart your webserver.

  8. Write a PHP page that calls phpinfo();. Load it in a browser and look for the info on the Xdebug module. If you see it, you have been successful! Alternatively, you can run php -v on the command line to see that Xdebug is loaded:

    $ php -v
    PHP 7.2.0RC6 (cli) (built: Nov 23 2017 10:30:56) ( NTS DEBUG )
    Copyright (c) 1997-2017 The PHP Group
    Zend Engine v3.2.0-dev, Copyright (c) 1998-2017 Zend Technologies
            with Sdebug v2.x.x-dev, Copyright (c) 2002-2017, by Derick Rethans
    

sdebug's People

Contributors

derickr avatar mixedpuppy avatar iliaal avatar allisterb avatar helly25 avatar remicollet avatar patrickallaert avatar krakjoe avatar mgdm avatar eloraburns avatar tony2001 avatar petk avatar nikita2206 avatar mabu233 avatar haraldradi avatar ddelbondio avatar stof avatar beberlei avatar dakusan avatar jbafford avatar seldaek avatar kallez avatar keeshoekzema avatar neweracracker avatar nikic avatar pilif avatar qwertyzw avatar sgolemon avatar fezfez avatar gnu-srs avatar

Watchers

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