सामान्य तरीके से एक नया टेस्ट सर्वर बॉक्स सेट अप करना मना रहा है - काम करने के लिए xdebug प्राप्त करने में सहायता मांगकर।xdebug ब्रेकपॉइंट असफल
सर्वर: उबंटू सर्वर 16.10/Nginx/पीएचपी 7 Xdebug http://php-built.com/installing-xdebug-for-php7/ में के रूप में आवश्यकताओं के साथ सेटअप और phpinfo
पर दिखामैं **:
ये वर्तमान सेटिंग्स की कोशिश की
हैं[xdebug]
zend_extension="/usr/lib/php/20151012/xdebug.so"
xdebug.remote_enable=true
xdebug.remote_host=192.168.0.201
xdebug.remote_port=10000 (port #9000 is usually occupied by FPM, so I recommend to use a differen$
xdebug.remote_autostart=1
xdebug.idekey=netbeans-xdebug
ग्राहक: विंडोज 10/नेट सेम पोर्ट पर ध्यान 10000
प्रवेश करें:
Log opened at 2017-03-15 17:23:49
I: Connecting to configured address/port: 192.168.0.201:10000.
I: Connected to client. :-)
-> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="file:///var/www/usr-datadimension/datadimension/sitefiles/public/index.php" language="PHP" xdebug:language_version="7.0.15-0ubuntu0.16.10.4" protocol_version="1.0" appid="19891" idekey="netbeans-xdebug"><engine version="2.5.1"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2017 by Derick Rethans]]></copyright></init>
<- feature_set -i 28 -n show_hidden -v 1
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="28" feature="show_hidden" success="1"></response>
<- feature_set -i 29 -n max_depth -v 3
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="29" feature="max_depth" success="1"></response>
<- feature_set -i 30 -n max_children -v 30
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="30" feature="max_children" success="1"></response>
<- feature_set -i 31 -n max_data -v 2048
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="31" feature="max_data" success="1"></response>
<- breakpoint_set -i 32 -t line -s enabled -f file://TESTSERVERSHARE/sitefiles/app/ControllerLibrary/Controllers/RootController_c.php -n 31
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="32" state="enabled" id="198910001"></response>
<- run -i 34
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="run" transaction_id="34" status="stopping" reason="ok"></response>
Log closed at 2017-03-15 17:23:50
मैं इस नीचे कुछ सहायक टिप्पणियों के अनुसार लेकिन हालांकि मैं यह कहते हुए लॉग में एक कनेक्शन है xdebug देख सकते हैं कि वे समाधान प्रदान नहीं किया है संपादित किया है ।
दिलचस्प बात यह है कि जब मैं 'पहली पंक्ति पर रुकता हूं' का चयन करता हूं तो 'जारी रखें' आइकन हरा दिखाता है और निष्पादन रोकता प्रतीत होता है, हालांकि मुझे पता नहीं है कि कहां है। ब्रेकपॉइंट अभी भी अनदेखा कर रहे हैं, ऐसा लगता है कि नेटबीन्स आंशिक रूप से xdebug की पहचान कर रहा है। यह क्रोम और फ़ायरफ़ॉक्स दोनों का उपयोग कर रहा है।
सहायता की आवश्यकता है कृपया xdebug और netbeans बात करने के लिए कृपया।
1) फ़ायरवॉल? 2) क्या NetBeans वास्तव में टीसीपी 9000 पोर्ट पर सुनते हैं (शायद आप श्रोता सक्षम करने के लिए भूल गए हैं (उदाहरण के लिए PhpStorm में केवल इसके लिए समर्पित बटन हैं))? नेटस्टैट या इसी तरह के टूल के साथ इसे जांचें। 3) php.ini से पूर्ण xdebug सेटिंग्स क्या हैं? लॉग * "दूरस्थ जाँच हो रही है वापस पता कनेक्ट" * ... से पता चलता है, लेकिन मैं इसी config लाइन नहीं दिख रहा है (जिसका अर्थ है - आप इसे का ही हिस्सा दिखा रहे हैं)। 4) क्या यह आईपी है - '192.168.5.17' - पुनः जाँच लें कि यह एक सही आईपी है (एक कंप्यूटर जहां NetBeans के रूप में है कि उबंटू से देखा चल रहा है) – LazyOne
@LazyOne के एक आईपी होना चाहिए - हाँ सब स्पष्ट करने की कोशिश की। आईपी केवल 1 9 2.168.5 रेंज के साथ एक स्थानीय है। आईडीई को यहां सुनकर दिखाया गया है। – Datadimension
अपने सर्वर और अपने सिस्टम को एक ही नेटवर्क पर करते हैं? आप सार्वजनिक आईपी यहाँ का उपयोग कर रहे हैं। तो कृपया उन लोगों के साथ दोबारा जांच करें। और फार्म पार की जांच, आप प्रणाली के माध्यम से 192.168.0.201:10000 उपयोग कर सकते हैं? – chudasamachirag