Can we have a use case of using the python debugger for a php project ?
The doc is unclear, and I cannot think of any way of using the python debugger.
I once questioned here about the debugger, but finally I ended up using synchronized folders between my VM and local folders. So I still have no ideas on how to use the python debugger and how it can be useful.
Hi, I don’t see any mention of the Python debugger on that PHP debugging page. I do not understand what you are trying to do. Using the Python debugger for PHP is not possible.
I found a way to use the python debugger :
Inside this folder : C:\Program Files (x86)\ActiveState Komodo IDE 11\lib\support\dbgp\bin
There is a “pydbgpproxy.exe”, and 3 python scripts : py3_dbgp.py , pydbgp.py and pydbgpproxy.py .
I have python 3.6.4 and the scripts are not working for me. But it works with “pydbgpproxy.exe”.
With “pydbgpproxy.exe” running with default settings, I open komodo and check “a system-provided free port” and “I am running a debugger proxy”, and set address to “127.0.0.1:9001”.
Now in cmd, I enter this :
set XDEBUG_CONFIG=remote_port=9000 remote_enable=1 idekey=komodo
php -f testing.php
And it works in cmd.
In the browser : testing.php?XDEBUG_SESSION_START=komodo
Why komodo needs to use “system-provided free port” if I use “XDEBUG_CONFIG=remote_port=9000” ?