Bug 323413 - [Debug] Switch back to the PHP perspective when debug ends, but isn't terminated
Summary: [Debug] Switch back to the PHP perspective when debug ends, but isn't terminated
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC All
: P2 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: PHP Debug CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-23 13:07 EDT by Silver Zachara CLA
Modified: 2020-05-14 10:16 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Silver Zachara CLA 2010-08-23 13:07:10 EDT
Hi dev,

I wanted to post this ticket a long time ago, but I do it now. I *lack* very much this feature, which rapidly speed up debugging of PHP apps, I'm using *XDebug Helper*.

The default behavior for debugging and switching between perspectives is:
1) When debug starts, so *PHP Debug perspective* is opened
2) When entire app is successfully debugged and debug session still exists ( when I don't terminate debug ), so Eclipse remain in *PHP Debug perspective*
3) When I click *Terminate* button, so debug will be closed and perspective will be switched to the *PHP perspective*

I can define all this behaviors in *Preferences - Run/Debug - Perspectives*

But this one I can't.

When entire app is successfully debugged and debug session still exists ( when I don't terminate debug process ), so Eclipse remains in *PHP Debug perspective*, but I want to switch back to the *PHP perspective* or better to my defined *Perspective* ( the same behavior, when I click disconnect, so I want to switch back to *PHP perspective*).
This extremely speed up app debugging and developing, because when I'm debugging some app and I click *F8* in the *PHP Debug perspective* after last breakpoint, so I want to edit and change my code, so in 95% cases I must switch back ( ctrl + F8 ) to the *PHP perspective*.
Comment 1 Roy Ganor CLA 2010-08-25 07:21:56 EDT
can you repeat what is the difference between "terminates" and "ends"?
Comment 2 Zhongwei Zhao CLA 2010-08-25 07:57:08 EDT
I think "ends" means a browser request ends,and terminates means the whole application  terminates.
Comment 3 Silver Zachara CLA 2010-08-25 10:35:52 EDT
Hi guys,

I exactly tell you what I mean  under words ends and terminates.

Debug *Terminates* - it's when I click *Terminate Button* in *PHP debug perspective* in *Debug view*, after click on this button the new URL is send to the browser ( because terminate XDebug session ) and perspective is switched back to the *PHP perspective*.

Will be great have this behavior in this situations too.

Debug *Ends* - it's when I click F8 ( resume ) when I'm on the last breakpoint, so whole debug process ends, but debug session still exists, actually it's the same when you click on button *Disconnect* in *PHP debug perspective* in *Debug view* during debug process ( when debugging was stopped on some breakpoint ) and you click the button *Disconnect*, so debug ends, but debug session still exists.

Pls, tell me if you understand what I mean.
Comment 4 happyoliver CLA 2010-11-03 16:41:42 EDT
Hi Developers,

After I updated eclipse heliso to fix the "Bug 312951 - xdebug doesn't work with eclipse-php-helios-M7 but works with eclipse-php-galileo-SR2"

The feature of Preferences>PHP>Debug>Workbench Options>"Switch back to the PHP perspective when debugging has terminated" doesn't work.
Comment 5 Silver Zachara CLA 2010-11-05 04:43:20 EDT
(In reply to comment #4)
> 
> The feature of Preferences>PHP>Debug>Workbench Options>"Switch back to the PHP
> perspective when debugging has terminated" doesn't work.

To happyoliver@gmail.com:
pls create new issue, your problem doesn't relate anyhow with my issue.

To developers, pls ignore comment 4.