Aaron Meurer
3074c987c6
Add DEFAULT_SIGNAL hook to let people disable use of SIGINT
2013-03-12 16:36:25 -06:00
Aaron Meurer
3c2d5aeedd
Fix up some more of the interrupt framework
...
This (partially) fixes #31 , and also improves work on #42 .
Now, interrupting with Control-C works when the debugging is started with
set_trace().
The SIGINT handler is enabled via the public function
pudb.set_interrupt_handler. If you want to be able to enter PuDB from within
your application, just call this function. By default, it uses SIGINT (i.e.,
Control-C), but you can change it to use a different signal if that one
interferes.
There is still one major issue, which is that when you break in the middle of
an atomic operation, it goes to bdb. After pressing `n` several times you get
to your code, though.
2013-03-11 23:06:46 -06:00
Aaron Meurer
8911613bbf
Enable Control-C to pause the debugger
...
This fixes #42 . Now pressing Control-C while the script is running enters the
debugger in the line that was run (i.e., it does a set_trace()).
Note that this only works if the script was invoked from `pudb` or `python -m
pudb`. If PuDB was started with `import pudb; pudb.set_trace()`, this does
not work. But not that even without this patch, Control-C kills Python
entirely in that case (as opposed to entering post-mortem mode).
2013-03-11 19:38:29 -06:00
Aaron Meurer
7b35aed004
Add .DS_Store to .gitignore
2013-03-11 19:16:49 -06:00
Aaron Meurer
3df6ca74f3
Add .mailmap
...
Now git shortlog -ns has no duplicates. Also, I wanted an excuse to exercise
my push access :)
2013-03-11 19:14:57 -06:00
Andreas Kloeckner
29db234e8e
Add support for __version__. (suggested by Luke Lee)
2013-03-10 14:52:58 -04:00
Andreas Kloeckner
4d6c814095
Don't crash when on '.' and ',' with no last search. Fixes #62 .
2013-03-10 13:21:36 -04:00
Andreas Kloeckner
89ace11f2b
Allow saving the current traceback to a text file.
2013-03-10 13:18:36 -04:00
Andreas Klöckner
23a647c7fe
Merge pull request #60 from asmeurer/readme
...
Small updates to the README
2013-03-05 21:23:19 -08:00
Aaron Meurer
ceabd10ab7
Mention pull requests
2013-03-05 20:41:27 -07:00
Aaron Meurer
42b8fe1ad6
Update README to mention pudb
script
2013-03-05 20:41:00 -07:00
Andreas Kloeckner
4059aeb09f
Fix Python 2-ism in exception catching.
...
Proper Py2/3 fix pointed out by Aaron Meurer.
2013-03-05 19:58:11 -05:00
Andreas Kloeckner
aa5503dde5
Revert "Insert 2to3 invocation into setup.py."
...
This reverts commit 4f913f6d7d
,
in accordance with the decision [1] to not use 2to3.
[1] https://github.com/inducer/pudb/pull/1
2013-03-05 19:44:20 -05:00
Andreas Kloeckner
4f913f6d7d
Insert 2to3 invocation into setup.py.
2013-03-05 14:33:22 -05:00
Greg Ingelmo
98a048167a
Add 256 color support to syntax highlighting.
2013-03-02 18:41:13 -05:00
Andreas Kloeckner
3ee234ba4a
Catch I/O errors in readline setup.
2013-02-23 15:51:04 -05:00
Andreas Klöckner
534888316e
Merge pull request #54 from asmeurer/console_scripts
...
Install scripts pudb (or pudb3 for Python 3) with setup.py
2013-01-29 16:09:59 -08:00
Aaron Meurer
97d0b0c9a3
Fix setup.py to work in Python 2.4
2013-01-29 01:08:16 -07:00
Aaron Meurer
69743d88d9
Install scripts pudb (or pudb3 for Python 3) with setup.py
...
These work exactly the same as python -m pudb.run.
2013-01-27 18:06:56 -07:00
Andreas Kloeckner
e06126ca8b
Be more serious about Debugger being a singleton. Only load breakpoints once.
2013-01-11 09:37:40 -05:00
Andreas Kloeckner
1121ad634a
Avoid broken backwards compatibility by switching to new interface. Require urwid 1.1.1.
2013-01-11 08:43:39 -05:00
Andreas Kloeckner
8577143b61
Various file display fixes.
2012-12-04 13:14:55 -05:00
Andreas Kloeckner
9581452001
Allow Ctrl-r to reload breakpoints.
2012-12-04 13:14:23 -05:00
Andreas Kloeckner
825f255e11
Only use dir() to get object attributes.
2012-08-14 20:24:46 -04:00
Andreas Kloeckner
c838943b15
Add minimum Python version blurb.
2012-08-11 16:10:48 -04:00
Andreas Kloeckner
62bcf9fbaf
Substitute partial() if unavailable.
2012-08-11 16:09:25 -04:00
Andreas Klöckner
488689ed5c
Merge pull request #44 from asmeurer/alpha_config
...
Save config file in alphabetical order
2012-08-07 19:02:25 -07:00
Aaron Meurer
f735c07e9b
Save config file in alphabetical order
...
This makes it a lot easier to track such files in git.
2012-08-07 17:41:50 -06:00
Andreas Kloeckner
b7300c2422
Bump version.
2012-08-06 11:30:43 -04:00
Andreas Kloeckner
1c696ed990
Fix 'restart' option in 'finished' dialog.
2012-08-06 11:26:36 -04:00
Andreas Kloeckner
39908802f1
Made it possible to go back and examine state from 'finished' window. (suggested by A. Meurer)
2012-07-24 19:24:58 -04:00
Andreas Kloeckner
6d0e846936
Improve search box behavior.
2012-07-24 18:03:53 -04:00
Andreas Kloeckner
874e85c6f4
Add Py 3 support to change log.
2012-07-24 10:36:53 -04:00
Andreas Kloeckner
5869490e38
Change H to go to bottom of stack.
2012-07-24 10:35:41 -04:00
Andreas Klöckner
61137e6e5d
Merge pull request #41 from bfroehle/2and3
...
Fix one small Python 3 bug... (missing a definition for raw_input).
2012-07-19 10:58:13 -07:00
Bradley M. Froehle
d04d29e4f6
Fix missing raw_input in Python 3.
2012-07-19 10:48:15 -07:00
Andreas Kloeckner
f15ff23d70
Tag for Python 3 support.
2012-07-14 16:33:17 -04:00
Andreas Kloeckner
103ae06a01
Minor fix to bfroehle's Python 3 changes.
2012-07-14 16:29:32 -04:00
Andreas Kloeckner
7b78bded59
Merge branch '2and3' of git://github.com/bfroehle/pudb
2012-07-14 16:16:15 -04:00
Bradley M. Froehle
605d9e1c2e
Simultaneous Python 2/3 compatibility.
2012-07-13 17:59:47 -07:00
Andreas Klöckner
63f1e6391d
Merge pull request #39 from adw0rd/master
...
Fixed a writer the duplicate breakpoints when working with Django
2012-06-16 11:09:29 -07:00
Mikhail Andreev (aka adw0rd)
7808883ddb
Fixed a writer the duplicate breakpoints when working with Django
2012-06-16 21:52:31 +04:00
Andreas Kloeckner
b32b4e52d6
Bump version.
2012-06-06 11:48:22 -04:00
Andreas Kloeckner
bbea96bf5f
Don't touch config files during install. (report by Thomas Ballinger)
2012-06-06 11:47:13 -04:00
Andreas Kloeckner
460fc0c4e7
Bump version.
2012-05-27 10:58:56 -04:00
Andreas Kloeckner
981340f694
Support BPython as a shell.
2012-05-27 10:55:56 -04:00
Andreas Kloeckner
127388b494
Support 'python -m pudb script.py' on 2.6+.
2012-05-27 10:55:21 -04:00
Andreas Kloeckner
5eefca6f63
Attribution for debug_me.py.
2012-05-12 02:37:28 -04:00
Andreas Klöckner
f65d3f635a
Merge pull request #37 from bukzor/master
...
encoding detection
2012-04-24 19:00:34 -07:00
Buck Golemon
bd8c52d8d2
the encoding directive must be a comment
2012-04-24 15:45:35 -07:00