Hi, I am trying to debug my PHP script. To do so, I use a Windows GUI called "XDebugClient". It's a little clunky but I've been able to manage so far, given that to date I only have a collection of very noddy little PHP scripts. On the global level, I can inspect all variables and it works just fine. Yesterday, I wrote my first PHP function and I hit the wall: XDebugClient always says that whatever local variable I want to inspect is "not available in this scope". I googled around but there are NO reports anywhere about any such problems. Yet this is such a fundamental feature failure, someone's bound to have come across it before me. In the absence of such reports, I rather suspect that I have not configured my PHP server correctly. To your knowledge, and I suspect that this not particular to my XDebugClient, to be able to inspect variables in local scopes from a remote debugger, what parameters do I need to set in my php.ini? I have been tinkering around and currently my config looks like so (only showing the uncommented params):
[XDebug]
xdebug.collect_params = 4
xdebug.collect_vars = "On"
xdebug.max_nesting_level = 100
xdebug.profiler_append = 0
xdebug.profiler_enable = 0
xdebug.profiler_enable_trigger = 0
xdebug.remote_enable = 1
xdebug.remote_host = "CLIENT05"
xdebug.remote_mode = "req"
xdebug.remote_port = 9000
Thank you.