In this post, we wanted to share our experiences and describe an ideal software configuration for coding in PHP (mainly in Drupal, since we are a Drupal agency). The base software that we use includes Linux (most people use Ubuntu) and PHPStorm as IDE. Taking advantage of various tool and configurations allows us to streamline the process and make it far more convenient and pleasant. I: Remote address found, connecting to 127.0.0.1:9001.Projects implemented by Droptica often require a large amount of coding in PHP. 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.Remote PHP (5.3.3) and Xdebug has been setup.One instance of phpStorm opened with project B.I would expect to be able to switch between the IDEs back and forth when this happen so I can keep a track of what the application is doing.I've open a page from app A and this page makes a request to an endpoint on the app B.The Xdebug extension has been installed and enabled in the browser (Chrome).Remote PHP (5.3.3) and Xdebug has been setup in both projects independently however the Xdebug setup from the PHP side (php.ini) is shared between them.Two different instances of phpStorm opened: one have the project A setup, the other one has the project B setup.Think on it as an small micro-services architecture with the difference that both are running on the same server which means same PHP, same Apache, same Server (box). There will be always two projects involved A which is the main application and B which is an API. ![]() I don't know if this is possible at PHP/xDebug or if it's not supported by phpStorm so don't call me crazy :p Also I am seeing different scenarios which I will describe below. I have been trying to setup this for a while and I have read a lot about it but sadly I am not able to get this to work.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |