Commit Graph

383 Commits

Author SHA1 Message Date
Aaron Meurer
6065d5a2c5 Backport a bdb patch from https://bugs.python.org/issue16482
This fixes an issue, noted in #90, where f_lineno would be reported
incorrectly, causing lines to be spuriously reported as breakpoints.

See also https://bugs.python.org/issue17697#msg186637 for a description of the
problem.
2015-05-07 19:35:10 -05:00
Aaron Meurer
b979fc5909 Don't modify the breakpoints list in-place
The breakpoints list is used internally by bdb, and adding "fake" set_trace
breakpoints to it leads to an inconsistent state inside of bdb where two lists
of breakpoints are not equal to one another, causing it to crash.  Since
set_trace "breakpoints" are not real breakpoints, there is no need for bdb to
know about them.
2015-01-06 22:49:15 -07:00
Aaron Meurer
7eebc0410a Don't mark the line as a breakpoint with Ctrl-C 2015-01-05 19:50:43 -07:00
Aaron Meurer
f60bba7869 Make all calls to set_trace mark as a breakpoint in the UI
This required redrawing the source lines in set_trace(). I'm not sure if this
is the best way to do this, but it seems to work.
2014-12-20 21:51:03 -07:00
Aaron Meurer
51d015aa1e Merge branch 'master' into breakpoints 2013-11-10 18:31:40 -07:00
Andreas Kloeckner
8e217e0734 More internal shell polish 2013-11-10 17:51:21 -06:00
Andreas Kloeckner
a47cca91e4 Various bits of polish for the internal shell 2013-11-10 16:51:56 -06:00
Andreas Kloeckner
830f722ebc First cut of inline shell 2013-11-10 16:13:09 -06:00
Andreas Kloeckner
ac06baa41e Rename bp_star attr to breakpoint marker 2013-11-08 16:14:06 -06:00
Andreas Kloeckner
f5361bd635 Better structure for theme module 2013-11-08 16:09:52 -06:00
Andreas Kloeckner
0bbddcdff5 Better structure for classic theme 2013-11-08 16:07:32 -06:00
Andreas Kloeckner
486e798371 Don't silence warnings in event loop 2013-11-08 16:07:08 -06:00
Andreas Kloeckner
af81fb464d Kill some more ListWalker warnings, see e234fa2857 2013-11-08 16:06:38 -06:00
Andreas Kloeckner
9f8a0ca85b PEP8 ui_tools 2013-11-08 15:38:09 -06:00
Andreas Kloeckner
e234fa2857 Sprinkle SimpleListWalker constructions to avoid deprecation warnings because of https://github.com/wardi/urwid/issues/37 2013-11-08 15:33:17 -06:00
Andreas Kloeckner
7b5750938b More curses theme tweaks 2013-11-08 15:14:38 -06:00
Andreas Kloeckner
d94b9ccf5e More curses bearability work 2013-11-08 11:40:23 -06:00
Andreas Kloeckner
4fc78f7457 Make life with the curses terminal a bit more bearable 2013-11-08 11:32:32 -06:00
Andreas Kloeckner
1b16552829 PEP8 theme 2013-11-08 11:16:31 -06:00
Andreas Kloeckner
85ea622fbe Be less judgmental towards curses 2013-11-07 19:52:17 -06:00
Andreas Kloeckner
1e691bae0d Silence warnings while showing PuDB UI 2013-11-07 19:36:23 -06:00
Andreas Kloeckner
afe202cdd0 Make urwid display backend configurable 2013-11-07 19:31:53 -06:00
Andreas Kloeckner
5810ea8cc3 Add Ctrl-l to redraw screen 2013-11-07 19:31:33 -06:00
Andreas Kloeckner
98d0c86987 Bump version 2013-11-06 11:09:29 -06:00
Andreas Kloeckner
78a6099457 Whitespace changes 2013-11-06 11:09:19 -06:00
Andreas Kloeckner
ca15497dbb Don't crash on out-of-bounds breakpoint lines (Fixes #93) 2013-11-06 11:09:04 -06:00
Andreas Klöckner
6f022b8594 Merge pull request #91 from asmeurer/reset_faq
Add a little FAQ entry on how to reset the terminal
2013-11-05 11:31:58 -08:00
Aaron Meurer
d763ee0d3f Add a FAQ entry on how to reset the terminal 2013-11-05 12:06:59 -07:00
Aaron Meurer
58ed903ee9 Highlight set_trace() on first call
This only works if it is the first time set_trace() has been called in the
file. Further set_trace() calls are not highlighted.
2013-10-31 16:46:32 -07:00
Aaron Meurer
879886548e Highlight set_trace() like a breakpoint when its status changes
Unfortunately, I'm not sure how to make it highlight initially, because I'm
not sure how to communicate that information from the debugger to the UI.
2013-10-31 16:35:54 -07:00
Aaron Meurer
6bdfc25b07 Make pressing 'b' on a set_trace() line skip it
All that remains to do is to show this in the UI.
2013-10-31 16:28:47 -07:00
Aaron Meurer
8ebd358e8a Beginning work on making set_trace() stoppable (#90)
For now, set_trace() is ignored after the first time it is called.  What
remains to do is to implement this in the GUI so that set_trace can be skipped
or not dynamically by the user.
2013-10-31 15:09:29 -07:00
Andreas Kloeckner
c414372ea4 Support debugging generated code 2013-10-30 22:12:40 -05:00
Andreas Kloeckner
65858b6156 Delete unused code 2013-10-30 22:12:22 -05:00
Andreas Kloeckner
87021b222f PEP8 pudb.source_view 2013-10-30 12:06:47 -05:00
Andreas Klöckner
57bc43a32f Merge pull request #89 from ekohl/patch-1
Typo fix
2013-10-02 06:49:56 -07:00
Ewoud Kohl van Wijngaarden
a1fc06639b Typo fix 2013-10-02 11:19:11 +02:00
Andreas Kloeckner
9732d3e924 Bump version 2013-09-06 13:34:05 -05:00
Andreas Kloeckner
18c5bf87e5 Add separate license file (requested by Dhiru Kolia) 2013-09-06 13:33:24 -05:00
Andreas Kloeckner
135774ef07 Minor var_view safety fix 2013-09-06 13:33:08 -05:00
Andreas Klöckner
8931a6998e Merge pull request #88 from asmeurer/interrupt_warning
Remove false interrupt warning
2013-08-26 17:41:00 -07:00
Aaron Meurer
e2208d1979 Don't warn when setting the same interrupt handler
This happens a lot because the idiom of putting

import pudb;pudb.set_trace()

in your code causes pudb to be reimported each time the set_trace() is hit.
2013-08-26 17:56:32 -06:00
Andreas Kloeckner
bd9693196b PEP8 var_view 2013-08-17 17:11:58 -05:00
Andreas Kloeckner
c7552ed4e5 Gitignore update 2013-08-17 14:55:57 -05:00
Andreas Kloeckner
3b901ae0f2 Bump version 2013-08-17 14:55:05 -05:00
Andreas Kloeckner
6bb3a32bfe Make only breakpoints file version specific 2013-08-16 23:10:28 -05:00
Andreas Klöckner
27e6aabb32 Merge pull request #83 from asmeurer/ipython-magic
Fixes to make the %pudb IPython magic work
2013-08-12 21:23:36 -07:00
Andreas Kloeckner
bf14b87e67 Add "C" shortcut to focus code 2013-08-12 23:17:59 -05:00
Andreas Kloeckner
eef74d558b Merge branch 'master' of github.com:inducer/pudb
Conflicts:
	pudb/settings.py
2013-08-12 12:56:48 -05:00
Andreas Kloeckner
5cbd33910d PEP8 settings 2013-08-12 12:56:12 -05:00