Atom을 사용하여 PHP 디버그에서 "새 세션이 거부되었습니다"라는 이유에 대해 알려 줄 수 있습니까?Atom을 사용하여 PHP 디버그에서 "새 세션이 거부되었습니다"라는 메시지가 나타나는 이유
xdebug가 설치되어 있고 아파치가 설치되어 있다는 것을 인식하고 확장 기능을 사용하여 Firefox에서 디버그를 사용할 수 있지만 Atom에서 오류가 발생하고 때때로 오류가 발생하지 않지만 디버거가 중단되지 않습니다. . 문제로 Windows 방화벽을 제거했지만 지금은 붙어 있습니다.
"*":
core:
telemetryConsent: "limited"
editor:
fontSize: 16
"exception-reporting":
userId: "8729c4aa-3989-14fa-78e9-968504643693"
"php-debug":
currentPanelMode: "bottom"
welcome:
showOnStartup: false
"php-debug":
PathMaps: [
"remotepath;localpath"
"localhost:8080/rdportal/index.php;C:\\xampp\\htdocs\\rdportal"
]
ServerPort: 9000
이 오류 로그입니다 내가 얻을 :
Log opened at 2016-12-01 03:43:41
I: Connecting to configured address/port: localhost:9001.
W: Creating socket for 'localhost:9001', WSAPoll: 10022.
W: Creating socket for 'localhost:9001', WSAPoll: 10022.
E: Could not connect to client. :-(
Log closed at 2016-12-01 03:43:41
다음
;xdebug
zend_extension = C:\xampp\php\ext\php_xdebug-2.5.0rc1-5.6-vc11.dll
xdebug.remote_enable=on
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.idekey=atom-xdebug
xdebug.remote_autostart=off
xdebug.remote_log = C:\xampp\php\logs\xdebug.log
이 config.cson의 설정입니다 : 여기
내 php.ini 파일에서 설정입니다오류 로그에 따라 디스코 xdebug 2.5 RC에 결함이 있었으므로 .dll 파일의 버전 2.4.1로 다운 그레이드했으며 "새 세션이 거부되었습니다"대신 "세션 시작됨"을 얻습니다. - 포트를 다시 9000으로 재설정했습니다. 기본이지만 여전히 중단 점은 없습니다. 대신 오류 로그는 이제 포함
Log opened at 2016-12-01 04:11:32
I: Connecting to configured address/port: 127.0.0.1:9000.
I: Connected to client. :-)
-> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="file:///C:/xampp/htdocs/rdportal/index.php" language="PHP" xdebug:language_version="5.6.1-dev" protocol_version="1.0" appid="6764" idekey="atom-xdebug"><engine version="2.4.1"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2016 by Derick Rethans]]></copyright></init>
<- feature_set -i 1 -n "show_hidden" -v 1
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="1" feature="show_hidden" success="1"></response>
<- feature_set -i 2 -n "max_depth" -v 4
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="2" feature="max_depth" success="1"></response>
<- feature_set -i 3 -n "max_data" -v 1024
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="3" feature="max_data" success="1"></response>
<- feature_set -i 4 -n "max_children" -v 32
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="4" feature="max_children" success="1"></response>
<- feature_set -i 5 -n "multiple_sessions" -v 0
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="5" feature="multiple_sessions" success="1"></response>
<- breakpoint_set -i 6 -t "line" -f "file://localhost:8080/rdportal/index.php/index.php" -n 134
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="6" id="67640073"></response>
<- breakpoint_set -i 7 -t "exception" -x "Fatal error"
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="7" id="67640074"></response>
<- breakpoint_set -i 8 -t "exception" -x "Catchable fatal error"
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="8" id="67640075"></response>
<- breakpoint_set -i 9 -t "exception" -x "Warning"
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="9" id="67640076"></response>
<- breakpoint_set -i 10 -t "exception" -x "Strict standards"
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="10" id="67640077"></response>
<- breakpoint_set -i 11 -t "exception" -x "Xdebug"
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="11" id="67640078"></response>
<- breakpoint_set -i 12 -t "exception" -x "Unknown error"
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="12" id="67640079"></response>
<- breakpoint_set -i 13 -t "exception" -x "Notice"
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="13" id="67640080"></response>
<- run -i 14
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="run" transaction_id="14" status="stopping" reason="ok"></response>
<- stop -i 15
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="stop" transaction_id="15" status="stopped" reason="ok"></response>
Log closed at 2016-12-01 04:11:32
이 지금 현재 config.cson입니다 :
"*":
core:
telemetryConsent: "limited"
editor:
fontSize: 16
"exception-reporting":
userId: "8729c4aa-3989-14fa-78e9-968504643693"
"php-debug":
PathMaps: [
"C:\\xampp\\htdocs\\rdportal;localhost:8080/rdportal/index.php"
]
PhpException:
CatchableFatalError: false
Deprecated: false
FatalError: false
Notice: false
ParseError: false
StrictStandards: false
UnknownError: false
Warning: false
Xdebug: false
currentPanelMode: "bottom"
welcome:
showOnStartup: false
이는 php.ini 파일의 Xdebug는 부분입니다 :
;xdebug
zend_extension = C:\xampp\php\ext\php_xdebug-2.4.1-5.6-vc11.dll
xdebug.remote_enable=1
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_autostart=0
임씨는 같은 문제에 직면 해 있습니다. 설정 파일이 어떻게 보이는지 게시 할 수 있습니까? – undroid
물론 이죠,하지만 그것은 내 작업 기계에 있으므로 내일이 될 것입니다. – beliskna
@beliskna 언제든지 구성을 게시하고 수행해야 할 작업을 자세히 설명 할 수 있습니까? 감사! – razvanz