Bug 494499 - Do not make the Debug perspective seem mandatory for debug
Summary: Do not make the Debug perspective seem mandatory for debug
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 4.5   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-25 03:17 EDT by Mickael Istria CLA
Modified: 2016-05-25 03:17 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mickael Istria CLA 2016-05-25 03:17:46 EDT
Some people are complaining about Eclipse perspectives and do not understand that they're not forced to switch between perspectives and always stay in the same one. When asking into more details, even advanced Eclipse users believe (wrongly) that debugging can only occur in the debug perspective.
This bug is to track ways to empower users about ability to debug without debug perspective.

---
I'm using Debug perspective as well, and I got used to having a Debug perspective with another set of views ready for debug; so I would miss it if it  gets removed.
However, it's true that this Debug perspective is highly customized: menus, views, layout... I changed many things. But that's the beauty of perspective to let user arrange them according to their usage. It seems like many users don't understand it.
About Java debugging, I also sometimes do debugging in my regular PDE perspective, without looking at the debug-specific views and doing F5/F6/F7, hover on variable and Inspect. It's actually working fine. So I do not think that the debug perspective is mandatory per-se. When debugging a project, a user is *suggested* to open the debug perspective, they can really say "No" and they'll be able to debug from a regular Dev perspective.

All that makes me believe that there is no bug change technically. It's mostly a matter of educating users.

There are a preferences in Run/Debug perspectives to control the behavior. There are currently 3 choice "Always/Never/Prompt". Here it seems like we need more control. It's not enough to encourage a good usage of Debug views in the current perspective.
So we could imagine that the dialog to open a perspective would ask for more than a simple yes/no. I could be

----------
----------
| You hit a breakpoint. How do you want to continue your debugging session?
| ( ) Open Debug perspective '''Hover describing the Debug Perspective'''
| (x) Remain in current XXX perspective
| 
| |x| Show the list of available Debug Views and let me open some
| |x| Remember this choice for the IDE (this can be changed in _Preferences > Run/Debug > Perspectives_
|_______

It's actually similar to the current one, but just involves user a bit more in the understanding and choice of what they can do.
Then we can consider making the "Remain in current perspective" the default choice when user pops-up and value wasn't remembered.
The preference would feature the same first 3 questions, prefixed by a combo
"On breakpoint, |v| Prompt user        | 
                  | Use globel setting |"