![]() ![]() I learned enough about it to get the debugger running with my existing MAMP and xdebug setup. Forcing java (NetBeans) to use ipV4 does not help.,I installed the phpStorm IDE for Mac. I just noticed that the lsof command above shows NetBeans listening on ipV6. Remove semicolons in front of both lines and make remote_enable = 1 xdebug.remote_enable = 1 Remove the semicolon and replace the path with the path of dll you just copied like: zend_extension = "C:\xampp\php\ext\php_xdebug-2.3." If for whatever reason XDebug is not able to report back to 127.0.0.1, or Netbeans is not listening on 127.0.0.1, you can configure XDebug to send the data back to the $_SERVER of the original request. If Netbeans and the Web Server are on the same system, ideally XDebug would be configured to send the data back to 127.0.0.1:9000, on which NetBeans would be listening on (and only per session). If port 80 is free no problem should arise.,Goto XAMPP control panel, click on Config button in front of Apache and select php.in, Install netbeans for PHP.,Source: Netbeans "Waiting For Connection (netbeans-xdebug)" Issue,Open XAMPP control panel and start Apache. Zend_extension = "c:\xampp\php\ext\php_xdebug-2.2." Hallelulja - hand in the money :-) Thanks to Derick Rethans the great guy that wrote Xdebug.,Stack Overflow en español,when I run phpinfo(), there is no xdebug installed, and when I debug a project from netbeans, it says "Waiting For Connection (netbeans-xdebug)".,Stack Overflow em Português 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. 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.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' Configured postman with: POST Authentication = JWT.The apache Web server is running on same machine so no path mapping required (not that it should matter). 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. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |