Home > Backend Development > PHP Tutorial > How to call debug php using vscode

How to call debug php using vscode

零下一度
Release: 2023-03-10 18:02:01
Original
3986 people have browsed it
  1. Install the plug-in php-debug.

  2. Find the readme_en.txt file in the xampp installation directory and check the specific version of phpPHP 5.6.30 (VC11 X86 32bit thread safe) + PEAR.

  3. Download the corresponding version of php in xdebug. PHP 5.6 VC11 TS (32 bit) (SHA256: cec798666b069f8c2d5b44222c878095d3d97c456ef94a79e0d6f2bd74658e41)

  4. ##Will be downloaded

    php_xdebug-2.5 .4-5.6-vc11. dllCopy to the C:\xampp\php\ext directory.

  5. Return to the upper directory, that is,

    C:\xampp\php, find php.ini, and configure it according to the following list. After the configuration is completed Restart apache.

  • Modify the maximum execution time to 5 minutes

    max_execution_time=3000

  • Add

    ## at the end #

    [XDebug]zend_extension = "C:\xampp\php\ext\php_xdebug-2.5.4-5.6-vc11.dll"        xdebug.remote_enable =1xdebug.remote_autostart = 1
    Copy after login

  • vscode``User settings

    Add"php.validate.executablePath": "C:\\xampp\\php\ \php.exe".

  • php

    Set a breakpoint in the file and manually open the corresponding page on the web page.

  • The above is the detailed content of How to call debug php using vscode. For more information, please follow other related articles on the PHP Chinese website!

    Related labels:
    source:php.cn
    Statement of this Website
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
    Popular Tutorials
    More>
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template