내가 비주얼 스튜디오의 코드를 사용하고 종료했습니다Xdebug는 - 디버그 어댑터 프로세스가 예기치 않게
나는 또한 PHP 디버그 확장 버전 1.12.1가 설치되어 있습니다. 내 PHP 버전은 : 나는 PHP Debug
플러그인의 지침에 따라 Xdebug는를 구성
>php --version
PHP 7.1.8 (cli) (built: Aug 1 2017 21:10:46) (ZTS MSVC14 (Visual C++ 2015) x86)
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
with Xdebug v2.5.5, Copyright (c) 2002-2017, by Derick Rethans
. 처럼 내 php.ini
모습 내부
내 설정 다음
이zend_extension = "C:\xampp\php\ext\php_xdebug-2.5.5-7.1-vc14.dll"
[XDebug]
xdebug.remote_enable = 1
xdebug.remote_autostart = 1
xdebug.remote_connect_back = 1
xdebug.idekey = "whatever"
phpinfo();
내 Xdebug는 실행 정확하게 보여줍니다
{
// 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
},
{
"name": "Launch currently open script",
"type": "php",
"request": "launch",
"program": "${file}",
"cwd": "${fileDirname}",
"port": 9000
}
]
}
:
내 launch.json
파일은 다음과 같습니다구성을 실행할 때
그러나, 내가 얻을 :
오류 로그는 다음과 같습니다
messageService.ts:126 Debug adapter process has terminated unexpectedly
e.doShow @ messageService.ts:126
e.show @ messageService.ts:105
_.onServerExit @ rawDebugSession.ts:535
(anonymous) @ rawDebugSession.ts:449
emitTwo @ events.js:111
emit @ events.js:194
__dirname.ChildProcess._handle.onexit @ internal/child_process.js:215
디버깅 문제가 무엇인지 어떤 제안?
답장을 보내 주셔서 감사합니다.
xdebug.ini 설정은 무엇입니까? – Farkie
@Farkie Thx 님의 답변입니다! 나는'xdebug.ini' 파일을 가지고 있지 않습니다. 그러나, 필자는'php.ini' 파일의'xdebug' 설정으로 답변을 업데이트했습니다. – mrquad