Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 331860 - PDT debugger daemon thread on port 10000 should prompt the user if port is in use
Summary: PDT debugger daemon thread on port 10000 should prompt the user if port is in...
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: ---   Edit
Assignee: PHP Debug CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-05 04:24 EST by Maksim CLA
Modified: 2020-05-14 11:08 EDT (History)
4 users (show)

See Also:


Attachments
an example of the implementation (13.03 KB, patch)
2011-05-26 04:44 EDT, Toshihiro Izumi CLA
no flags Details | Diff
screenshot - messagebox (5.27 KB, image/png)
2011-05-26 04:45 EDT, Toshihiro Izumi CLA
no flags Details
screenshot - preference (16.81 KB, image/png)
2011-05-26 04:46 EDT, Toshihiro Izumi CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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