This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 118775 - Add "Debug focused test" to go along with "Run Focused Test"
Summary: Add "Debug focused test" to go along with "Run Focused Test"
Status: RESOLVED FIXED
Alias: None
Product: ruby
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Martin Krauskopf
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-13 01:25 UTC by jamespb
Modified: 2008-02-21 10:18 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jamespb 2007-10-13 01:25:05 UTC
Add "Debug focused test" to go along with "Run Focused Test."

("Run focused test" finds the test method containing the cursor and runs it using ruby <filename> -n testname)
Comment 1 Martin Krauskopf 2007-10-17 12:57:16 UTC
Since module is not part of NB 6.0, I may do this soon.
Comment 2 Ondrej Langr 2007-10-17 14:18:32 UTC
Copying a mail I sent to ruby 

'Run focused test' has Ctrl + Alt + F6, right?

For 'Debug focused test' would be ideal Ctrl + Alt + F5(PC) but this can not be used due to a clash with KDE (KDE
switches to console with this shortcut).

Therefore, we can use Alt + Shift + F5 (on mac Ctrl + Shift + F5) which would make Run focused test and debug focused
test inconsistent or we can still change the shortcut for run focused test to Alt + Shift + F6 and have

Run focused test:      Alt + Shift + F6      Ctrl + Shift + F6
Debug focused test:    Alt + Shift + F5      Ctrl + Shift + F5

This is imo the best solution as it makes remembering these shortcuts easier which can be crucial for actions not
present in the menu. I tried to test this, but unfortunately can not add Ctrl + Shift + F* shortcut in 'Add Shortcut
Dialog' on mac to any action. Is there a problem with these shortcuts on mac I am not aware of?
Comment 3 Ondrej Langr 2007-10-17 14:18:54 UTC
Copying a mail I sent to ruby e-mail conference:
------------------------------------------------

'Run focused test' has Ctrl + Alt + F6, right?

For 'Debug focused test' would be ideal Ctrl + Alt + F5(PC) but this can not be used due to a clash with KDE (KDE
switches to console with this shortcut).

Therefore, we can use Alt + Shift + F5 (on mac Ctrl + Shift + F5) which would make Run focused test and debug focused
test inconsistent or we can still change the shortcut for run focused test to Alt + Shift + F6 and have

Run focused test:      Alt + Shift + F6      Ctrl + Shift + F6
Debug focused test:    Alt + Shift + F5      Ctrl + Shift + F5

This is imo the best solution as it makes remembering these shortcuts easier which can be crucial for actions not
present in the menu. I tried to test this, but unfortunately can not add Ctrl + Shift + F* shortcut in 'Add Shortcut
Dialog' on mac to any action. Is there a problem with these shortcuts on mac I am not aware of?
Comment 4 jamespb 2007-10-27 17:38:14 UTC
Just to clarify - the action (debug focused test) was added without a default keybinding, so users can add their own.

I can't add a ctrl-shift-FN keybinding on Linux, either.
Comment 5 jamespb 2007-10-27 17:40:16 UTC
Ignore my comment about not being able to assign ctrl-shift-FN on Linux - it was a window manager conflict.  Assigning
ctrl-shift-FN works just fine once I unassigned the key in KDE.
Comment 6 Martin Krauskopf 2007-11-07 13:27:58 UTC
> 'Run focused test' has Ctrl + Alt + F6, right?

Seems to me that it has Alt + Shift + F6.

> I tried to test this, but unfortunately can not add Ctrl + Shift + F* shortcut in 'Add Shortcut Dialog' on mac to any
> action. Is there a problem with these shortcuts on mac I am not aware of?

I'm not aware of any. Until they are eaten by your WM (MacOS). If still problem for you could you file separate issue
for core?

So I'll go with Alt + Shift + F5 for now.
Comment 7 Martin Krauskopf 2008-02-21 10:18:26 UTC
I've added the shortcuts:

http://hg.netbeans.org/main/rev/f6d8f1e8c3e9

Note there seems to be some general problem with those actions in the meantime (issue 101715).