Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable remote debug #10

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

akiya64
Copy link
Contributor

@akiya64 akiya64 commented Apr 2, 2020

settings

Add xdebug.ini in apache2/conf.d/ and fpm/conf.d dir.

HowTo

  1. Setting IDE or Editor for listen port 9000 and path mapping.

Example, setteings for Visual Studio Code.

data\wocker\wp-content\.vscode\launch.json

"configurations": [
     {
        "name": "Listen for XDebug",
        "type": "php",
        "request": "launch",
        "port": 9000,
        "pathMappings":{
            "/var/www/wordpress/wp-content":"${workspaceFolder}"
         }
    },
]
  1. Set break point in IDE.
  2. Set mode of IDE to listen XDebug.
  3. Start debug session by access http://wocker.test/?XDEBUG_SESSION_START or using browser addon.
  4. Stop breakpoint.

This screenshot show breaking line 30 in \wp-content\themes\twentytwenty\header.php
header php - wp-content - Visual Studio Code 2020_04_02 15_51_25

I was cheked break on Visual Studio Code and NeoVim in Windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant