Skip to content

r0co/remote_debugger_for_php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Remote debugger

用于配合Vscode进行php远程调试

使用方法

1.配置远程调试

conf/php.ini中将xdebug.remote_host改为你自己的ip

launch_demo.json中的内容复制到vscode中的launch.json

2.将代码放入app目录中

3.配置数据库连接(可选)

详见app/index.phpmysqli_connect('mysql', $uname, $passwd, $dbname);,注意hostmydb,默认用户为root,密码为root

更改mysql中用户名和密码、创建默认数据库详见docker-compose.yaml

4.启动

docker-compose up -d --build


完成上述步骤即可开始调试

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published