2017-10-21 12 views
0

VS 코드에서 PHP 디버깅을 설정하려고합니다. 청취자가 응답 할 수없는 것 같습니다. 여기 내 설정은 다음과 같습니다Felix Becker가 PHP 디버그 1.11.1을 사용하여 중단 점을 중지하는 데 문제가 있습니다.

php.ini 파일 :

[XDebug] 
xdebug.remote.enable=1 
xdebug.remote.autostart=1 
zend_extension="C:\xampp\php\ext\php_xdebug-2.5.4-5.5-vc11.dll" 

아파치 - vhosts.conf

<VirtualHost *:80> 
    DocumentRoot "E:/gator4123/public_html" 
    ServerName localhost 
</VirtualHost> 
<VirtualHost *:80> 
    DocumentRoot "E:/gator4123/public_html/winemakerssoftware.com" 
    ServerName wms.localhost 
</VirtualHost> 
<VirtualHost *:80> 
    DocumentRoot "E:/gator4123/public_html/dianestevenslaw.com" 
    ServerName law.localhost 
</VirtualHost> 
<VirtualHost *:80> 
    DocumentRoot "E:/gator4123/public_html" 
    ServerName rwd.localhost 
</VirtualHost> 

launch.json :

{ 
    // Use IntelliSense to learn about possible attributes. 
    // Hover to view descriptions of existing attributes. 
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 
    "version": "0.2.0", 
    "configurations": [ 
     { 
      "name": "Listen for XDebug", 
      "type": "php", 
      "request": "launch", 
      "port": 9000, 
      "serverSourceRoot": "E:/gator4123/public_html", 
      "localSourceRoot": "${workspaceRoot}/", 
      "log": true 
     }, 
     { 
      "name": "Launch currently open script", 
      "type": "php", 
      "request": "launch", 
      "program": "${file}", 
      "cwd": "${fileDirname}", 
      "port": 9000 
     } 
    ] 
} 

내 실제 루트 위치 :

E:\gator4123\public_html 

나는이 두 URL을 모두 시도해보고 동일한 응답, 즉 대기를 얻었습니다. 디버깅을 시작할 때 연결이 완료되면 메시지가 출력되지 않습니다. 내가 놓친 뭔가 <- launchResponse Response { seq: 0, type: 'response', request_seq: 2, command: 'launch', success: true }

http://localhost  
http://rwd.localhost 

있습니까 :

응답을 시작

?

답변

0

오케이, 가장 정교한 대답은 아니지만 제대로 작동 시켰습니다.

먼저는 PHP 7.1.1
다음을 포함하여 최신 버전으로 XAMPP를 업그레이드하는 것이었다에게 PHP 7.1.1
여기에 마지막으로 을 내 새 파일 설정입니다에게 맞게 라이브러리와 Xdebug는 다시 설치했다

php.ini 파일 :

[XDebug] zend_extension = C:\xampp\php\ext\php_xdebug-2.5.4-7.1-vc14.dll xdebug.remote_enable = 1 xdebug.remote_autostart = 1

HT TPD-vhosts.conf

<VirtualHost *:80> 
    DocumentRoot "E:/gator4123/public_html" 
    ServerName localhost 
</VirtualHost> 
<VirtualHost *:80> 
    DocumentRoot "E:/gator4123/public_html/winemakerssoftware.com" 
    ServerName wms.localhost 
</VirtualHost> 
<VirtualHost *:80> 
    DocumentRoot "E:/gator4123/public_html/dianestevenslaw.com" 
    ServerName law.localhost 
</VirtualHost> 
<VirtualHost *:80> 
    DocumentRoot "E:/gator4123/public_html" 
    ServerName rwd.localhost 
</VirtualHost> 

launch.json :

{ 
    // Use IntelliSense to learn about possible attributes. 
    // Hover to view descriptions of existing attributes. 
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 
    "version": "0.2.0", 
    "configurations": [ 
     { 
      "name": "Listen for XDebug", 
      "type": "php", 
      "request": "launch", 
      "port": 9000, 
      "log": true 
     }, 
     { 
      "name": "Launch currently open script", 
      "type": "php", 
      "request": "launch", 
      "program": "${file}", 
      "cwd": "${fileDirname}", 
      "port": 9000 
     } 
    ] 
} 

쉬워요 지침이 제안하는 것처럼 ...