Line 227: |
Line 227: |
| | | |
| ====Standard direct connection==== | | ====Standard direct connection==== |
| + | |
| + | For stock xdebug you probably need to set debugger.enabled to True |
| + | |
| + | Copy: |
| + | /etc/e-smith/templates/opt/remi/phpxx/root/etc/php.ini/80ModuleSettings03Debugger |
| + | |
| + | To: |
| + | /etc/e-smith/templates-custom/opt/remi/phpxx/root/etc/php.ini/80ModuleSettings03Debugger |
| + | |
| + | Edit the following and set debugger.enabled to True |
| | | |
| [Debugger] | | [Debugger] |
− | <nowiki>debugger.host = localhost</nowiki> | + | debugger.host = localhost |
− | <nowiki>debugger.port = 7869</nowiki> | + | debugger.port = 7869 |
− | <nowiki>debugger.enabled = False</nowiki> | + | debugger.enabled = False |
| + | |
| + | You could add a debug setting to automate this. |
| + | |
| + | ;debugger.enabled = False |
| + | debugger.enabled = { |
| + | my $debug = $php71{Debugger} || "False"; |
| + | $OUT .= "$debug"; |
| + | } |
| + | |
| + | Now you can do: |
| + | |
| + | config setprop php71 Debugger True |
| + | signal-event php-update |
| + | |
| + | Using Komodo IDE with pydbgp you may need a debug section like this |
| + | |
| + | ;xdebug.remote_enable = true |
| + | xdebug.remote_enable = { |
| + | my $debug = $php71{Debugger} || "False"; |
| + | $OUT .= "$debug"; |
| + | } |
| + | xdebug.remote_host = 127.0.0.1 |
| + | xdebug.remote_port = 9000 |
| + | xdebug.remote_handler = dbgp |
| + | xdebug.remote_log = /var/log/xdebug.log |
| + | xdebug.remote_mode = req |
| + | |
| + | |
| + | Alternative if you use Zend/Eclipse etc: |
| | | |
| zend_extension = "/usr/lib64/php/modules/xdebug.so" | | zend_extension = "/usr/lib64/php/modules/xdebug.so" |