Commit Graph

686 Commits

Author SHA1 Message Date
Andreas Klöckner
97ae90d13c Upgrade pytest-mock in requirements.dev.txt 2018-10-05 10:44:25 -04:00
Andreas Kloeckner
2bc7dc242c Flake8 fixes 2018-10-01 23:50:57 -05:00
Andreas Kloeckner
7700155baa Merge branch 'master' of gitlab.tiker.net:inducer/pudb 2018-10-01 23:28:53 -05:00
Andreas Klöckner
3672990912
Merge pull request #315 from swarmer/separate-tty
Add ability to control pudb from a separate tty
2018-10-01 23:26:41 -05:00
Anton Barkovsky
b51592f6de Mention shells in separate terminal docs 2018-10-02 01:39:51 +03:00
Anton Barkovsky
ef24a47d92 Refactor external tty opening and don't open it without need 2018-10-02 00:26:04 +03:00
Anton Barkovsky
6dd763f6e6 Remove create_tty script and update documentation 2018-10-02 00:17:47 +03:00
Andreas Klöckner
956a545fef Merge branch 'gitlab-junit' into 'master'
Add Pytest/JUnit/Gitlab integration, Py37 CI

See merge request inducer/pudb!3
2018-09-23 14:15:27 -04:00
Andreas Klöckner
c57fd8840d Add Pytest/JUnit/Gitlab integration, Py37 CI 2018-09-23 14:12:54 -04:00
Anton Barkovsky
a3d9db79fb Describe controlling debugger from a separate terminal in docs 2018-09-23 17:00:20 +03:00
Anton Barkovsky
640197c725 Fix opening ttys on linux 2018-09-23 15:55:01 +03:00
Anton Barkovsky
3bcba1b9df Detect external tty size on python 3 2018-09-22 21:08:30 +03:00
Anton Barkovsky
433881d950 Add ability to control pudb from a separate tty 2018-09-22 20:51:34 +03:00
Andreas Klöckner
6f059ad6ed
Merge pull request #311 from mapa17/pass_bdb_kwargs_#310
Passing kwargs to python debugger framework
2018-09-12 23:55:59 -05:00
Manuel Pasieka
fcb5b57499 Passing kwargs to python debugger framework 2018-09-12 14:03:33 +02:00
Andreas Klöckner
2fbb66be4c Merge branch 'fix-decoding-logic-for-pypy' into 'master'
Fix encoding detection logic for pypy

See merge request inducer/pudb!2
2018-08-20 19:16:39 -04:00
Andreas Kloeckner
f4fc96a69a Fix encoding tests on py2 2018-08-20 18:15:28 -05:00
Andreas Kloeckner
bb370fd66b Fix encoding detection logic 2018-08-20 18:01:38 -05:00
Andreas Kloeckner
416d646a05 Fix encoding detection logic for pypy 2018-08-20 17:51:07 -05:00
Andreas Klöckner
15ebf88611
Merge pull request #309 from alexfikl/skip-namespace-modules
Skip namespace packages in module listing
2018-08-09 10:34:59 -05:00
Alex Fikl
af3bdb6e7c debugger: skip namespace packages in module listing 2018-08-09 09:53:39 -05:00
Andreas Kloeckner
4d7bef5b40 Placate flake8 2018-07-02 11:41:28 -05:00
Andreas Klöckner
27687d0998
Merge pull request #303 from eht16/make_variables_access_level_persistent
Add setting to make access level in variables view persistent
2018-07-02 11:25:39 -05:00
Enrico Tröger
4b49317f3c Rename variables_access_level to default_variables_access_level 2018-07-01 21:38:45 +02:00
Andreas Klöckner
b7c550187e
Merge pull request #302 from eht16/use_space_for_variable_expand
Use "space" as additional key for expanding/collapsing variables
2018-06-16 18:08:59 -05:00
Enrico Tröger
594bd021ea Add "space" shortcut to help text 2018-06-16 20:26:44 +02:00
Enrico Tröger
b749e4bc4c Add setting to make access level in variables view persistent 2018-06-16 14:36:06 +02:00
Enrico Tröger
a2c9f6cdad Use "space" as additional key for expanding/collapsing variables
Space is on some keyboard layouts (like German) way easier to reach than
backslash, so add "space" as an alternative key for expanding/collapsing
variables.
2018-06-12 23:05:50 +02:00
Andreas Kloeckner
1dd021152a Placate flake8 2018-05-24 13:33:56 +02:00
Andreas Kloeckner
f774eb28be Bump version 2018-05-24 13:26:14 +02:00
Andreas Klöckner
a7bd72f32d
Merge pull request #293 from asmeurer/underscore_vars
Show variables that start with an underscore in the var view
2018-04-10 16:41:18 -05:00
Aaron Meurer
be23e69876
Show variables that start with an underscore in the var view
We still filter things that start and end with __, to filter out things like
__builtins__, __file__, and so on. It also removes the filtering of variables
that start with ., which is only possible if something puts that in globals()
manually.

Fixes #292.
2018-04-10 17:34:51 -04:00
Aaron Meurer
3f627ce0f7
Merge pull request #273 from asmeurer/text_width
Improve some text width calculations
2018-03-13 01:32:08 -04:00
Andreas Klöckner
e478e573f0
Merge pull request #287 from Allda/master
Show length of array types in var view
2017-12-29 12:55:15 -06:00
Ales Raszka
3f543148af Show length of array types in var view
The new code shows length of set, frozenset, list, tuple and dict type
varibles in variable view.
2017-12-29 14:14:36 +01:00
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
Aaron Meurer
b34f82ebaf Use urwid.util.calc_text_pos() in make_canvas()
Fixes the issue in the comment
https://github.com/inducer/pudb/issues/271#issuecomment-326776945. I don't
know if it also fixes the issue itself.
2017-09-03 02:20:09 -04:00
Aaron Meurer
983abcc509 Use text_width() in var_view
I am unsure if it really needs to be used for the variable name itself (can
variable names be double-width characters?), but I suppose it can't hurt.
2017-09-02 20:53:13 -04:00
Aaron Meurer
4dd084793d Create text_width() help function for getting the (terminal) width of a string 2017-09-02 20:52:53 -04: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