Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 364307 - Create dialog with warning if debug port is in use while running debugger session
Summary: Create dialog with warning if debug port is in use while running debugger ses...
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P2 enhancement (vote)
Target Milestone: ---   Edit
Assignee: PHP Debug CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 325562 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-11-21 06:27 EST by adithya CLA
Modified: 2020-05-14 11:08 EDT (History)
5 users (show)

See Also:


Attachments
XDebug configuration (83.82 KB, image/jpeg)
2011-11-21 06:30 EST, adithya CLA
no flags Details
PHP debugger configuration (61.61 KB, image/jpeg)
2011-11-21 06:30 EST, adithya CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description adithya CLA 2011-11-21 06:27:29 EST
Build Identifier: 20110319-2305

Hi,

I have setup XDebug in xampp and in Eclipse Indigo. When I am trying to run the PHP web page from eclipse it isn't showing any output ! it isn't opening a new tab in Firefox 8. I have configured Eclipse indigo to use external browser from Window → Preferences → General → Web Browser.

At another location where there isn't any proxy this configuration works perfectly fine. At my current location I face this problem where I am sitting behind a proxy so I configured XDebug to use the proxy which my web browser is using.
My phpinfo() shows that its using correct Xdebug configuration as mentioned in my php.ini.

Another point is does the ADT plug-in have anything to do with the functioning of the PDT plug-in because at the location where it works perfectly i haven't ADT installed. This might be far-fetched but just wanted to clarify. I am using PDT 3.0.


My PHP.ini file for XDebug looks like this:
[XDebug]
zend_extension = "E:\others\xampp-win32-1.7.7-VC9\xampp\php\ext\php_xdebug.dll"
xdebug.remote_enable=1
xdebug.remote_host="localhost"
xdebug.remote_port=9000
xdebug.remote_handler="dbgp"
xdebug.remote_mode="req"
xdebug.idekey = "ECLIPSE_DBGP"

Attached are my Eclipse configuration screenshots for XDebug:

It would be very kind if someone helped me out. Smile

-Adithya 

Reproducible: Always

Steps to Reproduce:
1.Configure php.ini to use XDebug.
2.Install PDT 3.0 for eclipse Indigo and configure it to use XDebug.
3.Create a PHP project in eclipse from an existing location on hard disk. In my case i am using xampp inside which i have wordpress php files. 
4.Try running the php page or even debugging it from  eclipse or from web. Neither does the debugger start nor does the page run on firefox.
Comment 1 adithya CLA 2011-11-21 06:30:09 EST
Created attachment 207298 [details]
XDebug configuration
Comment 2 adithya CLA 2011-11-21 06:30:38 EST
Created attachment 207299 [details]
PHP debugger configuration
Comment 3 adithya CLA 2011-11-22 02:19:02 EST
The problem got solved. Just wanted you all to know that the port 9000 was in use. Don't know what was using it but i changed the port and it worked perfectly. Eclipse needs to issue an error if it's unable to debug or run. It just didn't do anything ! No output, no error, no warning ! I hope in the future there is a patch coming for this. :)
Comment 4 Zhongwei Zhao CLA 2012-05-03 04:22:51 EDT
Need add alert dialog if the port is used.
Comment 5 Dawid Pakula CLA 2015-10-22 09:00:57 EDT
*** Bug 325562 has been marked as a duplicate of this bug. ***
Comment 6 Bartlomiej Laczkowski CLA 2016-07-19 18:26:29 EDT
Fixed after the changes for bug #465846.
Comment 7 Sylvia Tancheva CLA 2016-08-03 10:34:14 EDT
Closing