Community
Participate
Working Groups
1. Start new workspace 2. Create a ruby project File | New | Project... < Ruby / Ruby Project > < Next > > < Project name: [DebugRuby] > < Finish > 3. Create a Ruby Class File | New | Ruby Class < File: [MyClass2] > < Finish > 4. Paste the following snippet on the MyClass2.rb file. 5. Open [Breakpoints] view in [Debug] perspective Window | Open Perspective | Debug < Breakpoints > // Select view on the perspective. < Remove All Breakpoints > // If some breakpoint exists from previous test cases. 6. Set method breakpoint < line 21 > // Place caret position in printVariables() method at line 21. > localVariable = "localVariable3" Run | Toggle Method Breakpoint // Select from main menu bar. // exp: printVariables() method breakpoint is added on the [Breakpoints] view. // act: Following [Toggle Method Breakpoint] dialog is displayed, even if cursor position is inside of printVariables() method. > The operation is unavailable on the current selection. Please place the cursor inside a method. # Test snippet 6747 for debug test $globalVariable = "globalVariable1" CONSTANT = "CONSTANT1" class MyClass2 localVariable = "localVariable1" @instanceVariable = "instanceVariable1" @@classVariable = "classVariable1" # Set a breakpoint at next line p $globalVariable p CONSTANT p localVariable p @instanceVariable p @@classVariable p self def initialize localVariable = "localVariable2" @instanceVariable = "instanceVariable2" @@classVariable = "classVariable2" end def printVariables localVariable = "localVariable3" # Place caret position at step 6. p "In printVariables" p $globalVariable p CONSTANT p localVariable p @instanceVariable p @@classVariable p self end end # Set a breakpoint at next line MyClass2.new.printVariables p self # End of snippet 6747
Created attachment 209666 [details] Q7 test for testing of this case
Created attachment 209670 [details] Q7 test for testing of this case
@Nastya this bug belongs to Ruby component, so it is strange to have .js files in the test.
The bug is everywhere - changing component to common-debug