

You can now debug any REST call you need to figure out. What that does? Yup, every call to any JSON REST Api endpoint is now passing through Xdebug.This ofcause if Netbeans has the same cookie configured in main menu->tools->options->php->debug dialog. The IDE will now have an open session that will respond on every event that passes through Xdebug with the XDEBUG-SESSION-START=netbeans-xdebug cookie set in the Header/or in URL as a parameter. This example creates a very simple Hello, World web application. What just happened? The IDE sucessfully started an debug session with a receiver. Ofcause it does, you just called it from the IDE :-) If you have a breakpoint in index.php it will hit it. The Web browser will pop up a window with JSON output from endpoint when you start the debug session from the IDE. When I start debug ->Url ask popup is the same as before. So in my project configuration->Run Configuration->Project url: (whatever your WP project), Index file: index.php. The issue was simply to get the IDE to listen for connection requests from Xdebug. My mind is doing housekeeping while I sleep (small house to keep in order :-) and it is solved. Xdebug.remote_log = "c:/xampp/tmp/xdebug/xdebug_remot.log" Xdebug.profiler_output_name = "cachegrind.out.%t-%s" Xdebug.profiler_output_dir = "c:/xampp/tmp/xdebug" E: Time-out connecting to client (Waited: 200 ms). I: Connecting to configured address/port: 127.0.0.1:9000. NOTE: The post sent from postman execute just fine with all good status and shows up in WP.

Still I can not get that damned thing to respond. Port is definitely set correct in PHP.ini, Tools -> Options->PHP port 9000 matches PHP.ini. Netbeans is not listening! I have checked everything I can think of. Netstat in cmd: netstat -na | find "LISTENING" | find "127" Start debug -> popup asking for URL: Enter ' -> IDE waiting for xdebug connect. Set in header.Īdvanced Web Configuration set to: "proxy='',port: 9000", Debug URL: 'Always ask'

I strongly believe that PHP.ini settings are ok. I can run just fine from Netbeans standard url when it is started from IDE, but can not get connected to IDE while waiting for connection & triggered from Postman. My problem is that I can not get Xdebugger to connect to IDE when I access the Api endpoint from postman. I am trying to debug a REST Api problem in my WP installation.
