Version 4 (modified by szabgab, 3 years ago) (diff)



Run your code under a debugger with real-time display of results


  • Debugger supports Stepping, Breakpoints, Watches, Variable evaluation, Stack module #11

Planning for a new version of the debugger:

  • The debugger can be launched by any of the following: Run / Step In / Step Over / Step Out / Run till breakpoint
    • Run would stop at the first statement and it will be grayed out once the debugger is running
    • Once the debugger is running the saved breakpoints of all the files belonging to this thing will be sent over.
      • The question what does 'this thing' mean? Which files belong to the current run?
      • Files that are currently open in the editor? File that belong to the current session? File in the current project?
  • Movement: Step In / Step Over / Step Out / Run till breakpoint
    • They do the corresponding action of the built in debugger
  • Jump to current execution line ???
  • Set a breakpoint (this should save the breakpoint in a config file and if the debugger is currently running then set the breakpoint in the debugger as well)
    • How should a breakpoint remembered? Filename and line number? Filename and sub name?
  • Remove breakpoint
  • List all breakpoints ???
  • Show trace - shows the current trace - it should open a window (maybe in the right-side window of the debugger) and constantly update the trace until the user turns it off.
  • Display value - the selected variable, or the one that is under the cursor will be added to the right side where its value will be show every time the debugger pauses the execution
  • Show Value now - show the value of the currently selected variable
  • Evaluate Expression... opens a window where you can type in arbitrary perl expression for example:
    • print 2 + 3
    • $z = 42
    • print $z
  • Quit debugger ???
  • Set watch - The user should be able to type in an arbitrary expression (if there was something selected then this will be the default) When that expression changes value the debugger will stop The expression should be saved belonging to the main script that is being executed. When the debugger is launched again these watchpoints need to be set again (later we could display them to the user and ask the user if she wants to set them or not)
  • Remove watch - remove an expression from the watch list (and from the saved watches)


Ticket Resolution Summary Owner Reporter
#1507 Debugger causing Padre crash - MacOSx bowtie ron
#1485 fixed debugger RAW command does not update state properly bowtie SvenDowideit
#1480 debugger hangs bowtie vsespb
#1471 Can I see a call stack? SvenDowideit SvenDowideit
#1470 The debugger fails to find the file being stepped into SvenDowideit SvenDowideit
#1464 Add a Debug Launch dialogue SvenDowideit SvenDowideit
#1442 Perl-Arguments : startup options per file pandelis
#1420 fixed Start Padre with Debugger Panel active ... bowtie dolman
#1417 Debugger hangs with 'Show Local Variables' and very deep data-structures bowtie whumann
#1416 fixed Debug::Client::set_breakpoint ignores some errors bowtie whumann
#1415 fixed Debugger stepping into anonymous subs may crash Padre bowtie whumann
#1412 fixed Evaluate Expression in the debugger bowtie szabgab
#1411 Remove value from display bowtie szabgab
#1410 fixed Display Value should show value immediately bowtie szabgab
#1408 not relevant How to examine/inspect Unicode strings? szabgab
#1403 not relevant Debugger key bindings (n,s) do not function bowtie brewer
#1401 duplicate crash: Can't call method "get_h_var" on an undefined value at …/Padre/Wx/Panel/ line 904. daxim
#1389 fixed Breakpoints visual indicators aren't restored on Padre restart bowtie tome
#1388 fixed Using breakpoints toolbar item on un-named file causes crash bowtie tome
#1387 fixed Bad Query/Potential SQL injection in Padre/ bowtie tome
#1357 fixed "Debugger" menu is shown for non-Perl files alias, adamk zenogantner
#1211 not relevant Hot keys for Debug do not work fellipecm
#1086 fixed Debugger -> Display Value should support any Perl expression dandv
#1085 fixed "Debug -> Evaluate expression" doesn't display its output dandv
#1084 Tooltip expression evaluation bowtie dandv
#1083 fixed It should be possible to set breakpoints before starting the debugger szabgab dandv
#1036 not a bug Debugged scripts can't find modules in the current directory dandv
#1035 not a bug Padre hangs while debugged script hangs szabgab dandv
#1034 fixed New tab opened when debugging script with errors szabgab dandv
#1005 not relevant Uninitialized values when starting debugger on a file with errors zenogantner
#931 not relevant debugger: show watch values immediately after adding dam
#930 not relevant debugger: watch non-scalar variables dam
#929 not relevant debugger: add watch under cursor dam
#928 not relevant debugger: ability to remove watch items dam
#882 not relevant debugging for Wx-scripts doesn't work bowtie mtbf40
#833 fixed Syntax error crash padre when trying to debug szabgab vrobin
#812 not relevant Win32::GUI programs require 'external window' option azawawi Floyd-ATC
#333 fixed too much debug information azawawi jquelin
#321 fixed API for adding entries to right click menu pmakholm
#11 fixed Add debugger from within the editor szabgab szabgab


Ticket Resolution Summary Owner Reporter
#1513 Unable to use debugger in script that uses Lingua::Wordnet Perl module bowtie, szabgab Plecto
#1494 fixed Debug-Client-0.24 tests hang bowtie, szabgab Schwern
#1469 fixed Debug::Client 0.21_12 hangs on Windows bowtie, szabgab chorny
#1427 fixed Debug::Client 0.20 test failures against win32 or not! bowtie bowtie
#1370 fixed Debug::Client, @list context request fails against perl-5.15.6 (3 of n) bowtie bowtie
#1368 fixed Debug::Client tests fail against perl-5.15.6 (2 of n) bowtie bowtie
#1367 fixed Debug::Client tests fail against perl-5.15.6 (1 of n) bowtie bowtie
#832 not relevant GetOptions( spawns unsavedX tab and crash Padre in StepOver Debugging szabgab vrobin
#831 fixed CPAN Install, test failing caused by Term::Readline szabgab vrobin