"netstat -a -b" or alike) when "phone handle" icon is enabled.Ĥ) xdebug.discover_client_host = true is an improved version of v2's nnect_back = 1. Ensure that PhpStorm is the one that listens on that port (e.g. Sadly I'm not WSL user so cannot say what host to be used here.Ģ) You also have 2 different xdebug.client_host entries for v3.ģ) Ensure that Xdebug port in PhpStorm also 9003 (or just keep using 9000 as before). Just few notes anyway:ġ) v2 has xdebug.remote_host=wsl2.host while for v3 you put xdebug.client_host=l. Looks fine to me - I see nothing super obviously wrong. I: Remote address found, connecting to 127.0.0.1:9001.I: Connecting to configured address/port: localhost:9000. Xdebug.log result: I: Checking remote connect back address. For all of the xDebug configuration bellow and each attempt I have tried the following headers on the cURL request as explained here (Step 6): curl_setopt ( $ch, CURLOPT_HTTPHEADER, array (Ĭurl_setopt ( $ch, CURLOPT_HTTPHEADER, array ( Having the above information here is what I have tried for the last 4 hours just today and sadly without success. First of all I look for the IP address in the Vagrant which is as follow: ~]$ ifconfigĮth0 Link encap:Ethernet HWaddr 08:00:27:07:9E:3D Hi there it's being a while since we tried something here but I continue with the same issue which means no matter what I do is always trying to connect to the IP address `127.0.0.1` and I can't find what I am doing wrong. Here is the PHP > Servers setup (wrong path has been fixed as well) Here is the PHP > Servers setup (I have fixed the path mapping on the server side)Īgain no debugging setup has been set for this project but a break point has been set however the app is never stopping at that break point is like it does not exists. The IDE is stopping there and is debugging properly. There is NO configurations for debugging at all and a break point has been set. Xdebug is enabled on the browser and I am browsing a URL belonging to A app: At some point A is making calls to B, B is opened in another IDE I would expect to be able to debug those calls also at B IDE => this is not working.I should be able to debug on the IDE where app A is opened. Open app A and navigate through some pages.I have opened the A app and started making calls there and Xdebug is going to the right IDE as I said before but is not jumping between them when calls to the API on B are being made. I would expect something like the following: Why? How should I setup the have made the changes as you suggested and the debugging is working properly which means is going to the right IDE window. I would expect to be able to switch between the projects back and forth while debugging.One instance of phpStorm opened with two projects: project A and project B.Result: is not working because as soon as the IDE knows there is a request doesn't matter where is coming from it tries to debug the wrong project meaning A.Because the project I have open is B I would expect to be able to debug the API endpoints.I've open a page from app A and this page makes a request to an endpoint on the app B.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |