Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 320386 - Debugger always stops on first and next line when "break at first line" enabled
Summary: Debugger always stops on first and next line when "break at first line" enabled
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: PHP Debug CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-20 08:42 EDT by Kirill CLA
Modified: 2020-05-14 11:24 EDT (History)
1 user (show)

See Also:


Attachments
Break at first line patch (1.41 KB, patch)
2010-07-20 08:47 EDT, Kirill CLA
no flags Details | Diff

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