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

Bug 318452

Summary: Breakpoints matching different for first file vs. further files
Product: z_Archived Reporter: Jacek Pospychala <jacek.pospychala>
Component: PDTAssignee: PHP Debug <php.debug-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: silviya
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Attachments:
Description Flags
patch none

Description Jacek Pospychala CLA 2010-06-30 08:34:08 EDT
In org.eclipse.php.internal.debug.core.zend.debugger.handlers.StartProcessFileNotificationHandler.prepareForProcessing(String, PHPDebugTarget)

There's distinction between first and further files. First file uses different way to locate the resource containing breakpoints, than it's used for other files.

As a result in some cases, breakpoints are incorrectly set for first debugged file.
Comment 1 Jacek Pospychala CLA 2010-06-30 08:53:58 EDT
Created attachment 173085 [details]
patch

Fix is to call anything that's required for first file (e.g. first mapping and change dir), but use same method for resolving file path in all cases.
Comment 2 Jacek Pospychala CLA 2010-06-30 09:00:27 EDT
Patch applied to branch and head.
Comment 3 Sylvia Tancheva CLA 2010-09-02 04:37:00 EDT
Closing