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

Install xdebug #66

Open
tamthong1115 opened this issue Aug 15, 2024 · 1 comment
Open

Install xdebug #66

tamthong1115 opened this issue Aug 15, 2024 · 1 comment
Assignees
Labels

Comments

@tamthong1115
Copy link

Hello,

I'm running Docker on Linux. I use the following command to start the container:

docker run --name myXampp -p 41061:22 -p 41062:80 -d -v ~/my_web_pages:/www tomsik68/xampp:8

How do I install and using xdebug with vscode?
Thank you!

@tomsik68
Copy link
Owner

Hey,

I know you'd definitely have to:

  1. Install xdebug into the docker image using sudo apt-get install php-xdebug
  2. Add the following line to php.ini: zend_extension=xdebug

From then, xdebug says "it'll connect to your IDE" which I don't believe would happen in the docker container.

You should try playing with setting up dbgpProxy: https://xdebug.org/docs/dbgpProxy. I think you can start dbgpProxy inside the container and then forward its port to your machine. That could help.

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

No branches or pull requests

2 participants