2

I've installed Komodo IDE and I would like to know where/how can I set the breakpoints so that 9th symbol on the top line |> understands it ?

enter image description here

EDIT

enter image description here

user2925716
  • 949
  • 1
  • 6
  • 13

1 Answers1

2

Click the line number in the gutter on the left of the code.

screen recording that shows clicking the gutter on a line that outputs a variable, runs the debugger and demonstrates the variable value was set

simbabque
  • 53,749
  • 8
  • 73
  • 136
  • Please see my **EDIT**: I cannot see the `value` of `my variable $f` :-( – user2925716 Jun 04 '21 at 17:54
  • Do I need to have a `print statement` to see the value of my watched variable ?? – user2925716 Jun 04 '21 at 18:17
  • @user2925716 your breakpoint in the 2nd screenshot is on the same line as the declaration and the initialisation of the variable. Declaring the variable in its scope happens at run time, so the Perl debugger knows about it (and Komodo can show that). But since you're breaking on that line, that means it's stopped BEFORE the code in that line gets executed at run time. So the value of 2 has not been assigned yet. That's why I put my breakpoint on the statement below that. The `print` has nothing to do with it. – simbabque Jun 06 '21 at 11:53