Opened 9 years ago

Closed 8 years ago

#929 closed enhancement (not relevant)

debugger: add watch under cursor

Reported by: dam Owned by:
Priority: minor Milestone:
Component: Debugger for Perl 5 Version: 0.59
Keywords: debugger Cc:


Currently, the only way to add a watch item is to select it in the editor and click on the add watch button.

It would be nice if Padre could figure out the variable under the cursor and not require selection. If it fails to discover the variable, it could show a window for adding variable name by hand.

An additional item for the editor context menu would be extra great. Something like "Add <variable> to watch" (variable auto-guessed) or "Add watch" (when unable to guess).

Change History (4)

comment:1 Changed 9 years ago by zenogantner

I improved the variable detection in r11393 (via the already-existing code used by the refactoring functionality). Now you don't need to select the variable any more.

Still open

  1. dialog if no variable name is found
  2. editor context menu entry

What would also be nice: A context menu entry in the 'Debug' pane on the right hand side of Padre, or (additionally), an "add variable" button.

comment:2 Changed 8 years ago by szabgab

  • Component changed from editor to Debugger for Perl 5

comment:3 Changed 8 years ago by bowtie

  • Priority changed from major to minor


Is this still relevant with Debug2,

as you can now view local items

comment:4 Changed 8 years ago by bowtie

  • Resolution set to not relevant
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.