Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 97400

windows->centos->docker->php, how debug php using vscode? [closed]

$
0
0
  • vscode in windows
  • vmware in windows
  • centos in vmware
  • docker in centos
  • php and nginx in docker

php.ini

[XDebug]
xdebug.auto_trace = on
xdebug.collect_params = on
xdebug.collect_return = on
xdebug.profiler_enable = on
xdebug.profiler_output_dir ="/php/ext/xdebug_profilers"
xdebug.trace_output_dir = "/tmp/ext/xdebug_traces"
xdebug.remote_enable = on
xdebug.remote_connect_back = 1
xdebug.remote_port = 9010
xdebug.remote_autostart = on

vscode launch.json

{
  "version": "0.2.0",
  "configurations": [
    {
      "name": "XDebug Thinkphp5",
      "type": "php",
      "request": "launch",
      "stopOnEntry": false,
      "pathMappings": {
        "****": "${workspaceRoot}/****"
      },
      "port": 9010
    }
  ]
}

windows->centos->docker->php, He can't work properly,

windows->centos->php, He can work (And modify some configurations)

how debug php using vscode?

PHP debugging on a Docker host using Vscode

https://medium.com/@jasonterando/debugging-with-visual-studio-code-xdebug-and-docker-on-windows-b63a10b0dec


Viewing all articles
Browse latest Browse all 97400

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>