Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 331860

Summary: PDT debugger daemon thread on port 10000 should prompt the user if port is in use
Product: z_Archived Reporter: Maksim <eclipse-commiter>
Component: PDTAssignee: PHP Debug <php.debug-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P2 CC: eclipse-commiter, ganoro, silviya, wojciech.galanciak
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
an example of the implementation
none
screenshot - messagebox
none
screenshot - preference none

Description Maksim CLA 2010-12-05 04:24:24 EST
Build Identifier: 20100917-0705

In case port 10000 is in use by another application, the PHP Debugger Daemon Thread does not prompt the user about the fact the port is busy. After starting debugging in "Debug As PHP Web Page" mode, the debugger just hangs and the user does not know why.

Another related bug was "Bug 169047 - If port 10000 is already in use - prompt the user". It was decided to overload the method handleMultipleBindingError in DebuggerCommunicationDaemon class relative to its base abstract class - AbstractDebuggerCommunicationDaemon, by adding a proper handling for the problem, but I cannot find these changes fixed in PDT Debugger v0.7 in current version of DebuggerCommunicationDaemon.java (http://dev.eclipse.org/viewcvs/viewvc.cgi/org.eclipse.pdt/plugins/org.eclipse.php.debug.core/src/org/eclipse/php/internal/debug/core/zend/communication/DebuggerCommunicationDaemon.java?view=markup&revision=1.6&root=Tools_Project).

Reproducible: Always

Steps to Reproduce:
1. Open an application that listents to port 10000.
2. Start Eclipse, try debugging script "As PHP Web Page".

Expected result: debugging is started properly, in case debugger encountered some problems when setting up the debug environment, the user is prompted about the potential collisions.
Actual result: if PHP Debugger Daemon Thread cannot be run on port 10000, the user is not notified about the problem.
Comment 1 Toshihiro Izumi CLA 2011-05-26 04:44:58 EDT
Created attachment 196640 [details]
an example of the implementation

added
   MessageBox : prompt user to the problem that debugger port is in use
   Preference : PHP>Debug>Workbench Options>"Show warning if port is in use" checkbox to enable/disable popup warning
Comment 2 Toshihiro Izumi CLA 2011-05-26 04:45:42 EDT
Created attachment 196641 [details]
screenshot - messagebox
Comment 3 Toshihiro Izumi CLA 2011-05-26 04:46:15 EDT
Created attachment 196642 [details]
screenshot - preference
Comment 4 Wojciech Galanciak CLA 2014-01-20 18:04:25 EST
Fix for Bug 397180 provides requested behavior.
Comment 5 Sylvia Tancheva CLA 2015-06-05 07:19:51 EDT
1. Port 10000 was changed to 10137 - see Bug 465691
2. The problem with reporting conflicting ports is fixed in Bug 465846
Closing