648 Commits

Author SHA1 Message Date
Andreas Kloeckner
8d26bdf53a Don't crash on var state changes if no variable shown 2017-12-16 14:23:33 -06:00
Andreas Klöckner
481ee21740
Merge pull request #283 from lins05/set-socket-reuseaddr-for-remote-debugger
set socket REUSEADDR opt for the remote debugger
2017-11-27 01:02:23 -06:00
Shuai Lin
708f16d5bd set socket REUSEADDR opt for the remote debugger 2017-11-27 14:41:15 +08:00
Andreas Klöckner
d3676235aa
Merge pull request #282 from AlDanial/go_to_line_number_PR
update Go-to-Line UI with File/Current Line/Go to Line
2017-11-07 00:03:26 -06:00
Al Danial
34da7d364e set default value of 'Go to Line' to None instead of empty string 2017-11-06 21:46:17 -08:00
Al Danial
8c81537902 update Go-to-Line UI with File/Current Line/Go to Line 2017-11-05 21:06:31 -08:00
Andreas Kloeckner
5ffbd1aa94 Merge branch 'master' of github.com:inducer/pudb 2017-10-29 13:43:27 +01:00
Andreas Kloeckner
54fca0286a Placate new Flake8; add some license headers 2017-10-29 13:43:15 +01:00
Andreas Klöckner
e7b1d9d4fd Merge pull request #281 from koreno/fix-hasattr-safely_stringify_for_pudb-276
check 'safely_stringify_for_pudb' on the type #276
2017-10-15 10:07:10 -05:00
Ofer Koren
1d822626ce check 'safely_stringify_for_pudb' on the type #276
The hasattr call should check for 'safely_stringify_for_pudb' on the type of the object
instead of the object itself, so as not to implicitly call its __getattr__ (if implemented).
This will avoid the exceptions on such magic objects.
2017-10-15 15:23:17 +03:00
Andreas Klöckner
676ee9d2fc Merge pull request #272 from asmeurer/return-module-fix
Don't return early when "returning" from a module
2017-09-02 19:49:49 -05:00
Aaron Meurer
6e285b6479 Don't return early when "returning" from a module
We still need to run interaction so that the debugger will show the result of
the last line that was run. We just don't want it to treat the end of the
module as a "return".

For instance, if you have a file with a single variable definition

    a = 1

then if you stop on the definition, pudb will show the variable "a: 1" in the
variables view (but it won't show "return: None" after stepping again).

Fixes https://github.com/inducer/pudb/pull/264#issuecomment-326777042.
2017-09-02 20:37:30 -04:00
Andreas Kloeckner
6be804e07a Bump version 2017-09-02 13:51:08 -05:00
Andreas Kloeckner
9d148d828b Merge branch 'master' of github.com:inducer/pudb 2017-09-02 13:45:42 -05:00
Andreas Kloeckner
fe4635750d Check whether output from obj.safely_stringify_for_pudb() is actually a string, so as to not be confused by Mock objects (closes #270 on github) 2017-09-02 13:44:48 -05:00
Andreas Klöckner
67b485e397 Merge pull request #268 from Alok/add-ptipython
Fix keyword arg error
2017-08-29 19:25:34 -05:00
Alok Singh
9b60c547f0 fix keyword arg error 2017-08-29 16:50:33 -07:00
Andreas Klöckner
fb9f256369 Merge pull request #266 from Alok/add-ptipython
fix lint errors
2017-08-27 18:00:15 -05:00
Alok Singh
dfba7f6c66 fix lint errors 2017-08-27 14:33:51 -07:00
Andreas Klöckner
c98b8e7d7b Merge pull request #265 from Alok/add-ptipython
Add ptipython
2017-08-27 15:54:47 -05:00
Alok Singh
7b48753bb0 rm incorrect import 2017-08-27 13:16:32 -07:00
Alok Singh
2cd3c25db9 add ptipython support 2017-08-27 13:14:42 -07:00
Aaron Meurer
ffb803e5b3 Merge pull request #264 from asmeurer/return-module
Don't show "Return: None" when "returning" from a module frame
2017-08-24 14:08:05 -05:00
Aaron Meurer
8a487f406b Don't show "Return: None" when "returning" from a module frame
That is, when the last line of a module file is executed (usually from
runscript).
2017-08-24 03:58:32 -04:00
Andreas Kloeckner
edf0af7ecd Placate flake8 2017-08-13 12:28:44 -05:00
Andreas Kloeckner
0cf532633f Bump version (closes #262 on github) 2017-08-12 23:22:03 -05:00
Andreas Klöckner
23f834e49e Merge pull request #260 from asmeurer/double-width
Use urwid's calc_width in make_canvas
2017-07-05 09:20:52 +02:00
Aaron Meurer
a331e1f1cc Fix tests in Python 2 2017-07-04 21:08:11 -04:00
Aaron Meurer
c9eb596016 Use urwid's calc_width in make_canvas
This does the right thing for double-width and zero-width Unicode characters.

Fixes #232.
2017-07-04 20:12:28 -04:00
Andreas Klöckner
fef17b6f33 Merge pull request #259 from jsivak/feature/read_user_config
Tell ptpython to read/process the user's config file.
2017-06-25 13:02:57 +02:00
John Sivak
39164da936 Tell ptpython to read/process the user's config file. 2017-06-24 20:29:11 -04:00
Andreas Kloeckner
b85db7f658 Add safely_stringify_for_pudb 2017-05-27 20:25:52 -07:00
Andreas Kloeckner
d59fb6bdeb PEP8 fixes 2017-04-19 11:46:59 -05:00
Andreas Kloeckner
b87c1cfcd5 Merge branch 'master' of gitlab.tiker.net:inducer/pudb 2017-04-19 11:43:01 -05:00
Andreas Klöckner
4c226b6a28 Fix docs github link (closes #253 on Github) 2017-04-19 12:42:25 -04:00
Andreas Klöckner
82aedb9cca Merge pull request #249 from asmeurer/custom-shell
Add support for custom shells
2017-04-17 13:47:02 -05:00
Aaron Meurer
9bf6fc0395 Note in example-shell.py that returning returns control to the debugger 2017-04-17 14:09:12 -04:00
Aaron Meurer
074d249d28 Merge branch 'master' into custom-shell 2017-04-17 13:01:32 -05:00
Andreas Klöckner
757d49e323 Merge pull request #247 from wronglink/misc_cleanups
Miscellaneous code cleanups
2017-04-17 11:19:35 -05:00
Michael Elovskikh
33644753b3 Put multiline contidion in one line 2017-04-16 00:02:29 +05:00
Michael Elovskikh
c47726b0b0 Added lines decoding tests 2017-04-15 23:59:41 +05:00
discort
7033334e22 added base tests for source code providers 2017-04-15 23:59:41 +05:00
Aaron Meurer
f8e1e2f6d8 Change the shell API from runner(_locals, _globals, first_time) to runner(_globals, _locals)
The argument order globals, locals matches eval and exec. The first_time
argument is unnecessary, and just clutters the API.
2017-04-14 19:23:11 -04:00
Aaron Meurer
bff26b284e Add support for custom shells
A custom shell can be added in a similar way to a custom stringifier. Create a
file with a function pudb_shell(_globals, _locals, first_time) at the module
level, and set it in the settings.

The first_time setting is there to match the existing shells, but it seems
useless (a function can easily tell if it has already been called), so it
should perhaps be removed.
2017-04-13 02:26:29 -04:00
Aaron Meurer
8c9ec4275a Rename "command line" to "shell" in the help for consistency 2017-04-13 02:07:41 -04:00
Aaron Meurer
d7326646f5 Add some documentation for shells 2017-04-13 02:07:27 -04:00
Michael Elovskikh
7bf9ed38c0 Clean-up a little the source lines decoding part 2017-04-11 13:07:49 +05:00
Michael Elovskikh
3019e8829f Simplify lowlevel.detect_encoding for pudb use 2017-04-11 12:48:39 +05:00
Michael Elovskikh
97093483bf Use py2/3 built-it function next() for iteration step 2017-04-11 12:42:48 +05:00
Michael Elovskikh
3f128c0e6c Use functools.partial standart lib requirement 2017-04-11 12:04:52 +05:00