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

Bug 320386

Summary: Debugger always stops on first and next line when "break at first line" enabled
Product: z_Archived Reporter: Kirill <kirill>
Component: PDTAssignee: PHP Debug <php.debug-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: gadi
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Break at first line patch none

Description Kirill CLA 2010-07-20 08:42:06 EDT
Build Identifier: Studio 7.2 based on Eclipse 3.6

Make sure there are no any breakpoints set.

Debug some page with "Break at First Line" enabled. (Note: Debug as WEB page, not reproducible with PHP Script debug)
When debugger hits first line, press "Resume"; button in "Debug"; view.

Notice that debugger stop again in the next line. It shouldn't do so.

When "break at first line"; is disabled, then debugger doesn't stop on first nor the second line.

Reproducible: Always
Comment 1 Kirill CLA 2010-07-20 08:47:12 EDT
According to Debugger protocol, 'debug_stop=1' in URL is enough for setting break point at first line. Studio was sending a redundant break point at first line.
Disabling it solves the problem, but the break point at first line is needed for PHP Script mode.

Currently, Studio defines break point at first line only in Script mode debugging.
Comment 2 Kirill CLA 2010-07-20 08:47:59 EDT
Created attachment 174741 [details]
Break at first line patch
Comment 3 Gadi Goldbarg CLA 2010-08-25 09:41:26 EDT
Tested on 2.2.1 SR1
Verified - OK