| Version 9 (modified by bowtie, 19 months ago) (diff) |
|---|
Padre-Plugin-Debug
Debug-Simulator Dialog
- as we are running via a plugin, we need to simulate where these features will go.
- two new panel launchers
Q1, check boxes will go in Menu item
- A, View
- B, Debug
- we only need 3 buttons on the tool bar, (shown with border here to emphasise only)
- launch debugger
- breakpoint toggle adds margin marker
- quit debugger ( initially greyed out )
Breakpoints
Top icons
- gray cross ( Delete MARKER_NOT_BREAKABLE Current File Only )
- refresh Ctrl-List
- Breakpoints ( Toggle ) also updates Ctrl-List and Margin Markers
Middle
- blue Current File
- gray MARKER_NOT_BREAKABLE
- green project files
Bottom
- check Project show all files in current project with breakpoints
- if check projects, show delete all breakpoints in this project only
Debugger
Debugger Output
Screen Shot
Description
Run your code under a debugger with real-time display of results
TBD
- 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)
Remember in database:
filename - breakpoint - line number - condition main-file - expression to display (e.g. a variable name or a more complex expression) main-file - show stack trace on/off
main-file - a history of expressions evaluated? main-file - a set of watches (conditional, non-location breakpoints)
Tickets
Debug::Client
| Ticket | Resolution | Summary | Owner | Reporter |
|---|---|---|---|---|
| #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 |
Test
TODO
__END__
Attachments
-
PPD-shot1.png
(178.1 KB) -
added by bowtie 19 months ago.
ppd-shot1
-
debug-sim.png
(18.5 KB) -
added by bowtie 19 months ago.
debug simulator
-
debug2.png
(151.4 KB) -
added by bowtie 19 months ago.
debug2
-
debugger.png
(25.4 KB) -
added by bowtie 19 months ago.
debugger
-
debugger2.png
(26.7 KB) -
added by bowtie 19 months ago.
debugger2
-
breakpoints.png
(17.5 KB) -
added by bowtie 19 months ago.
breakpoints
-
tool-bar_icons.png
(2.0 KB) -
added by bowtie 19 months ago.
tool-bar_icons
-
debug_menu.png
(8.9 KB) -
added by bowtie 19 months ago.
debug menu
-
debugger3.png
(29.3 KB) -
added by bowtie 19 months ago.
debugger3
-
debugger1.png
(27.6 KB) -
added by bowtie 19 months ago.
debugger1
-
debug4.png
(141.9 KB) -
added by bowtie 19 months ago.
debug4
-
debug3.png
(159.4 KB) -
added by bowtie 19 months ago.
debug3
-
test.pl
(690 bytes) -
added by bowtie 19 months ago.
test.pl
-
sewi.pl
(342 bytes) -
added by bowtie 19 months ago.
sewi.pl
-
ExSewi.pm
(427 bytes) -
added by bowtie 19 months ago.
ExSewi?.pm
-
debugbreakpoints.png
(62.0 KB) -
added by bowtie 19 months ago.
debug breakpoints


