881 Commits

Author SHA1 Message Date
Andreas Klöckner
adfb7d8f89 Merge pull request #240 from asmeurer/linecache
Add info about linecache to the NullSourceCodeProvider message
2017-04-04 23:57:30 -05:00
Aaron Meurer
e0b8497779 Rename pu.cont to pu.go 2017-04-05 00:43:56 -04:00
Aaron Meurer
ec68898421 Add info about linecache to the NullSourceCodeProvider message
Fixes #238.
2017-04-05 00:40:53 -04:00
Aaron Meurer
7c1237353c Update the README 2017-04-04 18:29:59 -04:00
Aaron Meurer
82d5bac157 Add start as an alias for set_trace() 2017-04-04 18:10:50 -04:00
Aaron Meurer
f94ec12652 Rename activate_and_continue to set_trace(paused=False)
paused=True is the default. This also automatically causes the set_trace to
not be treated as a breakpoint, since it doesn't break there.

Add a docstring to set_trace() and updated the docstring of
Debugger.set_trace().
2017-04-04 18:07:52 -04:00
Aaron Meurer
95b4d558e2 Merge pull request #237 from wronglink/fix_null_source_code_message_rendering
Fix NullSourceCodeProvider rendering
2017-04-04 17:36:44 -04:00
Michael Elovskikh
537853a834 Fix NullSourceCodeProvider rendering 2017-04-05 00:30:45 +03:00
Andreas Kloeckner
f48a61513d Line length fix 2017-04-04 00:12:02 -05:00
Andreas Klöckner
55ef2e2ca8 Merge pull request #236 from asmeurer/SetPropagatingDict
Don't use SetPropagatingDict in the built in console
2017-04-03 23:49:16 -05:00
Aaron Meurer
b2812c79f3 Add docstring for SetPropagatingDict, explaining what it does 2017-04-03 22:02:27 -04:00
Aaron Meurer
05c46cd1e4 Don't use SetPropagatingDict in the built in console
Passing a dict subclass to eval is not supported in Python 2. This was causing
weird issues where the C-x would break the UI (I am not clear exactly how it
caused those issues).

The point of SetPropagatingDict is to combine globals and locals into a single
dictionary for things like code.InteractiveConsole and rlcompleter.Completer,
which take a single dictionary, but to allow changes to propagate, so that
assignments in the shell can modify global names. However, this is completely
unnecessary for the built in shell, as we call eval() ourselves, so we can
just pass the exact globals and locals dicts separately.

This fixes #166.
2017-04-03 21:49:59 -04:00
Aaron Meurer
ca64b8f827 Add activate_and_continue() to the README 2017-04-03 00:18:49 -04:00
Aaron Meurer
482ce594de Add pu.cont shortcut to pudb.activate_and_continue 2017-04-03 00:00:05 -04:00
Aaron Meurer
48e430a512 Rename pudb.set_continue to pudb.activate_and_continue 2017-04-02 23:59:53 -04:00
Aaron Meurer
596b4828e3 Add set_continue() function to __init__.py
This lets you start the debugger and immediately continue, i.e., it only stops
on a previously defined breakpoint.

Fixes #234.
2017-04-02 23:09:25 -04:00
Andreas Kloeckner
c9ac4b7ec0 Flake 8 fixes 2017-03-31 12:14:55 -05:00
Andreas Kloeckner
f71480a124 PEP8 cleanups 2017-03-31 11:22:05 -05:00
Andreas Kloeckner
db2129dfe8 Merge branch 'master' of github.com:inducer/pudb 2017-03-21 21:49:26 -05:00
Andreas Kloeckner
500b388b45 CI tweaks 2017-03-21 21:48:45 -05:00
Aaron Meurer
b796ade064 Merge pull request #228 from hehaha/bug-fix-compile-fail
set dont_inherit to ignore future statements when compile file
2017-03-15 03:31:48 -04:00
hx133455
e7fddf4051 set dont_inherit to ignore future statements when compile file 2017-03-15 11:31:15 +08:00
Andreas Klöckner
4f35c0ee9d Merge pull request #227 from hehaha/bug-fix-compile-fail
fix bug compile failed in Python 2.X
2017-03-14 09:58:56 -05:00
hx133455
c231d47d02 fix bug compile fail in Python 2.X 2017-03-14 19:15:44 +08:00
Andreas Kloeckner
4b7520fcc9 Link to pytest-pudb plugin in readme (Fixes #226) 2017-03-10 14:03:56 -06:00
Andreas Kloeckner
b38148e6b0 Fix README typo (Thx Antony Lee) 2017-02-20 11:51:38 -06:00
Andreas Kloeckner
76d5d024b5 Add comment about pytest usage to README 2017-02-20 10:32:46 -06:00
Andreas Klöckner
b8f670adef Merge pull request #224 from anntzer/compatible-api
Make Debugger.interaction match the signature of Pdb.interaction.
2017-02-20 10:26:08 -06:00
Antony Lee
f23744007f Make Debugger.interaction match the signature of Pdb.interaction.
This allows pudb to be used as debugger for pytest>=3.0, e.g.

```
$ cat test_foo.py
def test_1():
    assert False
$ pytest --pdbcls pudb.debugger:Debugger --pdb --capture=no
```
(starts pudb at the failed assertion site).

Note the need to pass `--capture=no` (or its synonym `-s`) as otherwise
pytest tries to manage the standard streams itself.

Backwards compatibility is preserved.
2017-02-19 23:41:09 -08:00
Andreas Kloeckner
9656c01cbf Bump version 2017-02-18 14:39:56 -06:00
Andreas Kloeckner
6c8bf37a12 PEP8 fixes 2017-02-18 14:34:14 -06:00
Andreas Kloeckner
9e35f1b268 Clear history before reading, to avoid exponential history explosion on multiple runs 2017-02-17 12:33:59 -06:00
Andreas Kloeckner
bc9315eaf5 Bump version 2017-02-03 17:59:37 -06:00
Andreas Klöckner
42b5e79cb9 Merge pull request #220 from pavelpatrin/master
Fix ptpython embed
2017-01-31 10:35:10 -06:00
Pavel Patrin
096f665f86 Fix ptpython embed 2017-01-31 19:08:41 +03:00
Andreas Klöckner
9a339be4ba Merge pull request #209 from timgabets/master
Setting term_size to the current size if None
2017-01-14 18:55:12 -06:00
Tim Gabets
79bd13375f Using IOCTL-based solution to get the terminal size 2017-01-13 13:52:46 +03:00
Tim Gabets
b8e83a7cb0 Checking Python version and using shutil.get_terminal_size() for PY3 2017-01-13 12:24:41 +03:00
Andreas Klöckner
d51cef41a4 Merge pull request #214 from Wilfred/display_none_values
Display None values as 'None' in the variable viewer
2017-01-09 20:08:11 +08:00
Wilfred Hughes
6364636eee Display None values as 'None' in the variable viewer
Previously they were 'NoneType', but this is a safe value to display.
2017-01-09 11:28:07 +00:00
Andreas Klöckner
884b127b6c Merge pull request #213 from gpanther/improve-signal-handling-with-threads
Check that we're on the main thread before installing the signal handler
2017-01-06 02:03:23 +08:00
Grey Panther
d6748f1250 Check that we're on the main thread before installing the signal handler
Makes the error message a little bit more clear and also surpresses setting the signal handler when not on the main thread and not explicitly asked to install one.

Closes #212.
2017-01-05 18:14:42 +02:00
Andreas Klöckner
0a8b240fe4 Merge pull request #210 from jeffwidman/patch-1
Drop support for ancient iPython versions
2016-12-24 12:48:55 +01:00
Jeff Widman
78637b2f7a Drop support for ancient iPython versions
We are now on iPython 5, version 1 is over 3 years old, so no sense supporting old versions at this point. If someone needs to support something that old, they can use an old version of `pudb`.
2016-12-24 01:14:14 -08:00
Tim Gabets
9885e9145b Setting term_size to the current size if None 2016-12-15 17:20:37 +03:00
Andreas Klöckner
37639edd61 Merge pull request #208 from epmoyer/monokai
Monokai
2016-12-14 10:24:57 -06:00
Eric Moyer
9749243e3c Fix typos 2016-12-14 08:03:28 -08:00
Eric Moyer
2e94fabaa9 add style inheritance 2016-12-13 17:08:49 -08:00
Eric Moyer
4d939aa8d5 fix Python 2.6 compatibility 2016-12-12 00:23:59 -08:00
Eric Moyer
e572b9df28 fix dunder palette for solarized 2016-12-11 22:10:07 -08:00