2012-04-14 17 views
5

पर Xdebug को सक्षम करना मै मैक ओएस एक्स शेर के लिए Xdebug को सक्षम करने का प्रयास कर रहा हूं, लेकिन यह काम नहीं कर सकता। यह बहुत सीधे आगे होना चाहिए लेकिन यह सिर्फ मेरे लिए काम नहीं कर रहा है।मैक ओएस एक्स शेर

ये कदम मैं हुए थे:

1 - uncommented php.ini फ़ाइल की इस पंक्ति:

zend_extension="/usr/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so" 

2 -

sudo apachectl restart 

3 के साथ अपने अपाचे सर्वर को पुनः आरंभ - जांच की है कि यह phpinfo() फ़ंक्शन के माध्यम से सक्षम है। यह वास्तव में ज़ेंड मॉड्यूल के रूप में और एक अलग मॉड्यूल के रूप में सक्षम है।

लेकिन यह काम नहीं करता है। प्रत्येक बार मेरी PHP स्क्रिप्ट में एक त्रुटि होती है, वे डिफ़ॉल्ट रूप से बदसूरत त्रुटि हैंडलिंग का उपयोग करके प्रदर्शित होते हैं। var_dumps भी काम नहीं करते हैं।

क्या मुझे एक कदम याद आ रहा है?

उत्तर

7

सुनिश्चित करें कि आपके html_errors और display_errors आपकी php.ini फ़ाइल के माध्यम से चालू हैं।

+0

हे भगवान ... कि यह किया गया था। मैंने html_errors को सक्रिय नहीं किया था। बहुत बहुत धन्यवाद माइक। मुझे अब मूर्खतापूर्ण लगता है ... –

+1

यह हमारे सबसे अच्छे से होता है। –

+0

मैं यहाँ नया हूं, माइक। तो दुर्भाग्य से मैं आपके जवाब को वोट नहीं दे सकता। लेकिन बहुत दोस्त धन्यवाद! –

3

मुझे एक ही समस्या है।

मैं पहले एमएएमपी का उपयोग करके इसे सक्रिय करने में सक्षम था। वैसे भी इस माहौल ने समस्याएं पैदा की हैं और मैंने एक स्टैंडअलोन MySQL स्थापित किया है और मैक ओएस शेर के अपाचे को सक्रिय किया है।

मैं xdebug.so recompiled है, और /private/etc/php.ini संशोधित:

;... 
zend_extension="/usr/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so" 
;... 
[xdebug] 
;xdebug.idekey="macgdbp" 
xdebug.remote_enable=1 
xdebug.remote_handler="dbgp" 
xdebug.remote_host=127.0.0.1 
xdebug.remote_port=9000 
xdebug.remote_log="/var/log/xdebug.log" 
xdebug.remote_autostart=1 

लेकिन वहाँ कुछ भी नहीं मैं क्या कर सकते हैं, मैं NetBeans 7.1 डिबगर अनुलग्न प्राप्त करने में सक्षम नहीं हूँ।

मुझे क्या याद आ रही है?

php-config उत्पादन:

$ php-config --help 
Usage: /usr/bin/php-config [OPTION] 
Options: 
    --prefix   [/usr] 
    --includes   [-I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib] 
    --ldflags   [ ] 
    --libs    [-lresolv -lz -lexslt -ltidy -lresolv -ledit -lncurses -lpq -lpq -liodbc -lldap -llber -liconv -liconv -lfreetype -lpng -lz -ljpeg -lcrypto -lssl -lcrypto -lcurl -lbz2 -lz -lpcre -lcrypto -lssl -lcrypto -lm -lxml2 -lz -licucore -lm -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lcurl -lxml2 -lz -licucore -lm -liodbc -lxml2 -lz -licucore -lm -lnetsnmp -lcrypto -lxml2 -lz -licucore -lm -lxml2 -lz -licucore -lm -lxml2 -lz -licucore -lm -lxml2 -lz -licucore -lm -lxml2 -lz -licucore -lm -lxml2 -lz -licucore -lm -lxslt -lxml2 -lz -licucore -lm ] 
    --extension-dir  [/usr/lib/php/extensions/no-debug-non-zts-20090626] 
    --include-dir  [/usr/include/php] 
    --man-dir   [/usr/share/man] 
    --php-binary  [/usr/bin/php] 
    --php-sapis   [cli apache2handler] 
    --configure-options [--prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --disable-dependency-tracking --sysconfdir=/private/etc --with-apxs2=/usr/sbin/apxs --enable-cli --with-config-file-path=/etc --with-libxml-dir=/usr --with-openssl=/usr --with-kerberos=/usr --with-zlib=/usr --enable-bcmath --with-bz2=/usr --enable-calendar --with-curl=/usr --enable-dba --enable-ndbm=/usr --enable-exif --enable-ftp --with-gd --with-freetype-dir=/usr/local --with-jpeg-dir=/usr/local --with-png-dir=/usr/local --enable-gd-native-ttf --with-icu-dir=/usr --with-iodbc=/usr --with-ldap=/usr --with-ldap-sasl=/usr --with-libedit=/usr --enable-mbstring --enable-mbregex --with-mysql=mysqlnd --with-mysqli=mysqlnd --without-pear --with-pdo-mysql=mysqlnd --with-mysql-sock=/var/mysql/mysql.sock --with-readline=/usr --enable-shmop --with-snmp=/usr --enable-soap --enable-sockets --enable-sqlite-utf8 --enable-suhosin --enable-sysvmsg --enable-sysvsem --enable-sysvshm --with-tidy --enable-wddx --with-xmlrpc --with-iconv-dir=/usr --with-xsl=/usr --enable-zend-multibyte --enable-zip --with-pcre-regex=/usr --with-pgsql=/usr --with-pdo-pgsql=/usr] 
    --version   [5.3.10] 
    --vernum   [50310] 
+0

अविश्वसनीय! एक स्ट्रिंग गलत वर्तनी: xdebug.remote_handler = "dbgp" – gsscoder

संबंधित मुद्दे