Bug 561159 - xdebug doesn't stop at breakpoints unless manually enter url in browser
Summary: xdebug doesn't stop at breakpoints unless manually enter url in browser
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 4.9   Edit
Hardware: Other Mac OS X
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Platform-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-16 10:28 EDT by Mary Albanese CLA
Modified: 2020-03-16 10:28 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mary Albanese CLA 2020-03-16 10:28:49 EDT
I am remotely debugging a simple file, test.php,  on an EC2 instance.
I have set ECLIPSE to use external browser Firefox Developer. 

I select the green debug button and I see that the URL in the  browser is set correctly by ECLIPST and has  the proper XDEBUG information in it as follows:


http://keepity.com/test.php?XDEBUG_SESSION_START=ECLIPSE_DBGP&KEY=158431436622425


However, breakpoints dont work!  There are no  breakpoint_set  commands  showing in the  remote xdebug.log and eclipse does NOT stop at any breakpoints.   If I set break at first line- it WILL stop at the first line and allow me to single step, HOWEVER it will NOT stop at any of the breakpoints. 


If I copy the the above url, and MANUALLY  paste it into the Firefox browser url,    Eclipse will immediately ask me to :
SELECT THE LOCAL RESOURCE THAT MATCHES THE FOLLOWING SERVER PATH
and the breakpoints will work fine!!

I know it's important to set the path mapping correctly and I believe I have because first line breakpointing works. In addition, I have tried setting the path to the project name in workspace and tried specifying the full path in the file system. Either way, same behavior.



Why would breakpoints work if I MANUALLY paste the following URL, but they WONT work if Eclipse opens the exact same url when I select the DEBUG button?

http://keepity.com/test.php?XDEBUG_SESSION_START=ECLIPSE_DBGP&KEY=158431436622425



SET UP DETAILS:

New install of Eclipse: 
Eclipse IDE for PHP Developers
Version: 2018-09 (4.9.0)
Build id: 20180917-1800


Remotely debugging code on an AMAZON LINUX  3.10.53-56.140.amzn1.x86_64


When creating an eclipse project, I was asked if I want to use existing files in the filesystem and thats what I did, so the .settings/.buildpath/.project are not in the workspace, they are in the folder where my project resides.