pdb++, a drop-in replacement for pdb (the Python debugger)

Overview

pdb++, a drop-in replacement for pdb

What is it?

This module is an extension of the pdb module of the standard library. It is meant to be fully compatible with its predecessor, yet it introduces a number of new features to make your debugging experience as nice as possible.

https://user-images.githubusercontent.com/412005/64484794-2f373380-d20f-11e9-9f04-e1dabf113c6f.png

pdb++ features include:

  • colorful TAB completion of Python expressions (through fancycompleter)
  • optional syntax highlighting of code listings (through Pygments)
  • sticky mode
  • several new commands to be used from the interactive (Pdb++) prompt
  • smart command parsing (hint: have you ever typed r or c at the prompt to print the value of some variable?)
  • additional convenience functions in the pdb module, to be used from your program

pdb++ is meant to be a drop-in replacement for pdb. If you find some unexpected behavior, please report it as a bug.

Installation

Since pdb++ is not a valid package name the package is named pdbpp:

$ pip install pdbpp

pdb++ is also available via conda:

$ conda install -c conda-forge pdbpp

Alternatively, you can just put pdb.py somewhere inside your PYTHONPATH.

Usage

Note that the module is called pdb.py so that pdb++ will automatically be used in all places that do import pdb (e.g. pytest --pdb will give you a pdb++ prompt).

The old pdb module is still available by doing e.g. import pdb; pdb.pdb.set_trace().

New interactive commands

The following are new commands that you can use from the interative (Pdb++) prompt.

sticky [start end]
Toggle sticky mode. When in this mode, every time the current position changes, the screen is repainted and the whole function shown. Thus, when doing step-by-step execution you can easily follow the flow of the execution. If start and end are given, sticky mode is enabled and only lines within that range (extremes included) will be displayed.
longlist (ll)
List source code for the current function. Different from the normal pdb list command, longlist displays the whole function. The current line is marked with ->. In case of post-mortem debugging, the line which actually raised the exception is marked with >>. If the highlight config option is set and Pygments is installed, the source code is highlighted.
interact
Start an interative interpreter whose global namespace contains all the names found in the current scope.
track EXPRESSION
Display a graph showing which objects are the value of the expression refers to and are referred by. This command requires the pypy source code to be importable.
display EXPRESSION
Add an expression to the display list; expressions in this list are evaluated at each step, and printed every time its value changes. WARNING: since these expressions are evaluated multiple times, make sure not to put expressions with side-effects in the display list.
undisplay EXPRESSION:
Remove EXPRESSION from the display list.
source EXPRESSION
Show the source code for the given function/method/class.
edit EXPRESSION
Open the editor in the right position to edit the given function/method/class. The editor used is specified in a config option.
hf_unhide, hf_hide, hf_list
Some frames might be marked as "hidden" by e.g. using the @pdb.hideframe function decorator. By default, hidden frames are not shown in the stack trace, and cannot be reached using up and down. You can use hf_unhide to tell pdb to ignore the hidden status (i.e., to treat hidden frames as normal ones), and hf_hide to hide them again. hf_list prints a list of hidden frames. The config option enable_hidden_frames can be used to disable handling of hidden frames in general.

Smart command parsing

By default, pdb tries hard to interpret what you enter at the command prompt as one of its builtin commands. However, this is inconvenient if you want to just print the value of a local variable which happens to have the same name as one of the commands. E.g.:

(Pdb) list
  1
  2     def fn():
  3         c = 42
  4         import pdb;pdb.set_trace()
  5  ->     return c
(Pdb) c

In the example above, instead of printing 42 pdb interprets the input as the command continue, and then you lose your prompt. It's even worse than that, because it happens even if you type e.g. c.__class__.

pdb++ fixes this unfriendly (from the author's point of view, of course :-)) behavior by always prefering variable in scope, if it exists. If you really want to execute the corresponding command, you can prefix it with !!. Thus, the example above becomes:

(Pdb++) list
  1
  2     def fn():
  3         c = 42
  4         import pdb;pdb.set_trace()
  5  ->     return c
(Pdb++) c
42
(Pdb++) !!c

Note that the "smart" behavior takes place only when there is ambiguity, i.e. if there exists a variable with the same name as a command: in all other cases, everything works as usual.

Regarding the list command itself, using list(… is a special case that gets handled as the Python builtin:

(Pdb++) list([1, 2])
[1, 2]

Additional functions in the pdb module

The pdb module that comes with pdb++ includes all the functions and classes that are in the module from the standard library. If you find any difference, please report it as a bug.

In addition, there are some new convenience functions that are unique to pdb++.

pdb.xpm()
eXtended Post Mortem: it is equivalent to pdb.post_mortem(sys.exc_info()[2]). If used inside an except clause, it will start a post-mortem pdb prompt from the line that raised the exception being caught.
pdb.disable()
Disable pdb.set_trace(): any subsequent call to it will be ignored.
pdb.enable()
Re-enable pdb.set_trace(), in case it was disabled by pdb.disable().
@pdb.hideframe
A function decorator that tells pdb++ to hide the frame corresponding to the function. Hidden frames do not show up when using interactive commands such as up, down or where, unless hf_unhide is invoked.
@pdb.break_on_setattr(attrname, condition=always)

class decorator: break the execution of the program every time the attribute attrname is set on any instance of the class. condition is a callable that takes the target object of the setattr and the actual value; by default, it breaks every time the attribute is set. E.g.:

@break_on_setattr('bar')
class Foo(object):
    pass
f = Foo()
f.bar = 42    # the program breaks here

If can be used even after the class has already been created, e.g. if we want to break when some attribute of a particular object is set:

class Foo(object):
    pass
a = Foo()
b = Foo()

def break_if_a(obj, value):
    return obj is a

break_on_setattr('bar', condition=break_if_a)(Foo)
b.bar = 10   # no break
a.bar = 42   # the program breaks here

This can be used after pdb.set_trace() also:

(Pdb++) import pdb
(Pdb++) pdb.break_on_setattr('tree_id')(obj.__class__)
(Pdb++) continue

Configuration and customization

To customize pdb++, you can put a file named .pdbrc.py in your home directory. The file must contain a class named Config inheriting from pdb.DefaultConfig and override the desired values.

The following is a list of the options you can customize, together with their default value:

prompt = '(Pdb++) '
The prompt to show when in interactive mode.
highlight = True
Highlight line numbers and the current line when showing the longlist of a function or when in sticky mode.
encoding = 'utf-8'
File encoding. Useful when there are international characters in your string literals or comments.
sticky_by_default = False
Determine whether pdb++ starts in sticky mode or not.
line_number_color = pdb.Color.turquoise
The color to use for line numbers. See Notes on color options.
filename_color = pdb.Color.yellow
The color to use for file names when printing the stack entries. See Notes on color options.
current_line_color = "39;49;7"
The SGR parameters for the ANSI escape sequence to highlight the current line. The default uses the default foreground (39) and background (49) colors, inversed (7). See Notes on color options.
editor = None
The command to invoke when using the edit command. By default, it uses $EDITOR if set, else vim or vi (if found). If only the editor command is specified, the emacs and vi notation will be used to specify the line number: COMMAND +n filename. It's otherwise possible to use another syntax by using the placeholders {filename} and {lineno}. For example with sublime text, specify editor = "subl {filename}:{lineno}".
truncate_long_lines = True
Truncate lines which exceed the terminal width.
exec_if_unfocused = None
Shell command to execute when starting the pdb prompt and the terminal window is not focused. Useful to e.g. play a sound to alert the user that the execution of the program stopped. It requires the wmctrl module.
enable_hidden_frames = True
Certain frames can be hidden by default. If enabled, the commands hf_unhide, hf_hide, and hf_list can be used to control display of them.
show_hidden_frames_count = True
If enable_hidden_frames is True this controls if the number of hidden frames gets displayed.
def setup(self, pdb): pass
This method is called during the initialization of the Pdb class. Useful to do complex setup.
show_traceback_on_error = True

Display tracebacks for errors via Pdb.error, that come from Pdb.default (i.e. the execution of an unrecognized pdb command), and are not a direct cause of the expression itself (e.g. NameError with a command like doesnotexist).

With this option disabled only *** exception string gets printed, which often misses useful context.

show_traceback_on_error_limit = None
This option sets the limit to be used with traceback.format_exception, when show_traceback_on_error is enabled.

Options relevant for source code highlighting (using Pygments)

use_pygments = None
By default Pygments is used for syntax highlighting of source code when it can be imported, e.g. when showing the longlist of a function or when in sticky mode.

pygments_formatter_class = None

You can configure the Pygments formatter to use via the pygments_formatter_class config setting as a string (dotted path). This should should be one of the following typically: "pygments.formatters.Terminal256Formatter", "pygments.formatters.TerminalTrueColorFormatter", or "pygments.formatters.TerminalFormatter".

The default is to auto-detect the best formatter based on the $TERM variable, e.g. it uses Terminal256Formatter if the $TERM variable contains "256color" (e.g. xterm-256color), but also knows about e.g. "xterm-kitty" to support true colors (TerminalTrueColorFormatter). TerminalFormatter gets used as a fallback.

pygments_formatter_kwargs = {}

A dictionary of keyword arguments to pass to the formatter's contructor.

The default arguments (updated with this setting) are:

   {
       "style": "default",
       "bg": self.config.bg,
       "colorscheme": self.config.colorscheme,
   }

 ``style = 'default'``

  The style to use, can be a string or a Pygments Style subclass.
  E.g. ``"solarized-dark"``.
  See http://pygments.org/docs/styles/.

``bg = 'dark'``

  Selects a different palette for dark/light backgrounds.
  Only used by ``TerminalFormatter``.

``colorscheme = None``

  A dictionary mapping token types to (lightbg, darkbg) color names or
  ``None`` (default: ``None`` = use builtin colorscheme).
  Only used by ``TerminalFormatter``.

Example:

class Config(pdb.DefaultConfig):
    pygments_formatter_class = "pygments.formatters.TerminalTrueColorFormatter"
    pygments_formatter_kwargs = {"style": "solarized-light"}

Notes on color options

The values for color options will be used inside of the SGR escape sequence \e[%sm where \e is the ESC character and %s the given value. See SGR parameters.

The following means "reset all colors" (0), set foreground color to 18 (48;5;18), and background to 21: "0;48;5;18;38;5;21".

Constants are available via pdb.Color, e.g. pdb.Color.red ("31;01"), but in general any string can be used here.

Coding guidelines

pdb++ is developed using Test Driven Development, and we try to keep test coverage high.

As a general rule, every commit should come with its own test. If it's a new feature, it should come with one or many tests which excercise it. If it's a bug fix, the test should fail before the fix, and pass after.

The goal is to make refactoring easier in the future: if you wonder why a certain line of code does something, in principle it should be possible to comment it out and see which tests fail.

In exceptional cases, the test might be too hard or impossible to write: in that cases it is fine to do a commmit without a test, but you should explain very precisely in the commit message why it is hard to write a test and how to reproduce the buggy behaviour by hand.

It is fine NOT to write a test in the following cases:

  • typos, documentation, and in general any non-coding commit
  • code refactorings which do not add any feature
  • commits which fix an already failing test
  • commits to silence warnings
  • purely cosmetic changes, such as change the color of the output
Comments
  • TypeError: write() argument must be str, not bytes

    TypeError: write() argument must be str, not bytes

    Originally reported by: Aurélien Campéas (Bitbucket: auc, GitHub: auc)


    #!python
    
      File "C:\Anaconda2\envs\py3k\lib\site-packages\_pytest\pdb.py", line 109, in post_mortem
        p.interaction(None, t)
      File "C:\Anaconda2\envs\py3k\lib\site-packages\pdb.py", line 244, in interaction
        self.print_stack_entry(self.stack[self.curindex])
      File "C:\Anaconda2\envs\py3k\lib\site-packages\pdb.py", line 798, in print_stack_entry
        print('[%d] >' % frame_index, file=self.stdout, end=' ')
      File "C:\Anaconda2\envs\py3k\lib\codecs.py", line 377, in write
        self.stream.write(data)
    TypeError: write() argument must be str, not bytes
    

    • Bitbucket: https://bitbucket.org/antocuni/pdb/issue/63
    bug major 
    opened by antocuni 20
  • Windows tests

    Windows tests

    Add Windows testing via AppVeyor.

    This is a prerequisite for getting proper Windows support (at least for colors - completion is another issue).

    The basic idea is that paths on Windows are stupid and because we need to support Python < 3.6, we can't easily use pathlib. A lot of the tests are regex comparisons, and what happens is that the forward-slashed Windows paths end up looking like they have escape characters in them (namely \p in ...\pdbpp...).

    So we simply modify those path strings and replace all backslashes \ with forward slashes /.

    In addition, Windows is a case-insensitive file system, so C:\foo is the same as c:\foo. This again causes the regex-based tests to fail, so we add in os.path.normcase which, on windows, changes things to lowercase.

    Sometimes we can't adjust the expected output of a file path (like stacktrace.format_exc), so in those cases we just skip checking those lines if we're testing on Windows.

    Lastly there are a couple tests that I just couldn't figure out why they won't work on Windows. I figured that since they're tested on Linux, it's likely OK to skip them on Windows:

    • test_continue_arg_with_error: 'charmap' codec can't decode byte 0x81.
    • test_complete_removes_duplicates_with_coloring: Fails on AppVeyor, but doesn't fail when I run it locally... /shrug.
    • test_stdout_reconfigured: I think this might be an issue with pyreadline. Full stack trace is:
      C:\dev_python\pdbpp\testing\test_pdb.py:5102: in test_stdout_reconfigured
          """)
      C:\dev_python\pdbpp\testing\test_pdb.py:264: in check
          expected, lines = run_func(func, expected)
      C:\dev_python\pdbpp\testing\test_pdb.py:246: in run_func
          return expected, runpdb(func, commands)
      C:\dev_python\pdbpp\testing\test_pdb.py:180: in runpdb
          func()
      C:\dev_python\pdbpp\testing\test_pdb.py:5086: in fn
          assert pdbpp.local.GLOBAL_PDB.stdout is patched_stdout
      C:\dev_python\pdbpp\testing\test_pdb.py:5086: in fn
          assert pdbpp.local.GLOBAL_PDB.stdout is patched_stdout
      C:\WinPython36_x64_zero\python-3.6.3.amd64\Lib\bdb.py:48: in trace_dispatch
          return self.dispatch_line(frame)
      C:\WinPython36_x64_zero\python-3.6.3.amd64\Lib\bdb.py:66: in dispatch_line
          self.user_line(frame)
      C:\WinPython36_x64_zero\python-3.6.3.amd64\Lib\pdb.py:261: in user_line
          self.interaction(frame, None)
      c:\dev_python\pdbpp\.tox\py36\lib\site-packages\pdbpp.py:401: in interaction
          return self._interaction(frame, traceback)
      c:\dev_python\pdbpp\.tox\py36\lib\site-packages\pdbpp.py:429: in _interaction
          self._cmdloop()
      C:\WinPython36_x64_zero\python-3.6.3.amd64\Lib\pdb.py:321: in _cmdloop
          self.cmdloop()
      C:\WinPython36_x64_zero\python-3.6.3.amd64\Lib\cmd.py:111: in cmdloop
          readline.parse_and_bind(self.completekey+": complete")
      c:\dev_python\pdbpp\.tox\py36\lib\site-packages\pyreadline\rlmain.py:100: in parse_and_bind
          self.mode._bind_key(key, func)
      c:\dev_python\pdbpp\.tox\py36\lib\site-packages\pyreadline\modes\basemode.py:165: in _bind_key
          keyinfo = make_KeyPress_from_keydescr(key.lower()).tuple()
      c:\dev_python\pdbpp\.tox\py36\lib\site-packages\pyreadline\keysyms\common.py:121: in make_KeyPress_from_keydescr
          raise IndexError("Not a valid key: '%s'"%keydescr)
      E   IndexError: Not a valid key: 'ck'
      

    Related to #334.

    opened by dougthor42 18
  • Doesn’t install on OS X

    Doesn’t install on OS X

    Originally reported by: Hynek Schlawack (Bitbucket: hynek, GitHub: hynek)


    Hi,

    0.8 seems to (indirectly) depend on funcsigs 0.2 which fails to install on OS X (it also pulls in distribute, good times). funcsigs 0.4 installs fine.

    $ pip wheel pdbpp
    Collecting pdbpp
      Downloading https://pypi.vm.ag/root/pypi/+f/92e/1b8c947d8a8b9/pdbpp-0.8.tar.gz
    Collecting fancycompleter>=0.2 (from pdbpp)
      Downloading https://pypi.vm.ag/root/pypi/+f/446/67c62c6db6318/fancycompleter-0.4.tar.gz
    Collecting ordereddict (from pdbpp)
      Downloading https://pypi.vm.ag/root/pypi/+f/a0e/d854ee442051b/ordereddict-1.1.tar.gz
    Collecting backports.inspect (from pdbpp)
      Downloading https://pypi.vm.ag/root/pypi/+f/17a/5042b2fdb6c2b/backports.inspect-0.0.2.tar.gz
    Collecting wmctrl (from pdbpp)
      Downloading https://pypi.vm.ag/root/pypi/+f/3dd/c4ca04056627c/wmctrl-0.1.tar.gz
    Collecting pygments (from pdbpp)
      File was already downloaded /Users/hynek/.wheels/Pygments-2.0.2-py3-none-any.whl
    Collecting distribute (from backports.inspect->pdbpp)
      File was already downloaded /Users/hynek/.wheels/distribute-0.7.3-cp34-cp34m-macosx_10_9_x86_64.whl
    Collecting funcsigs==0.2 (from backports.inspect->pdbpp)
      Downloading https://pypi.vm.ag/root/pypi/+f/1f5/6853306a9aa69/funcsigs-0.2.tar.gz (698kB)
        100% |################################| 700kB 6.5MB/s
        Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.34.tar.gz
        Extracting in /var/folders/n8/bvhdmjbn4ljc498jpsr3rq6r0000gn/T/tmpw8_cthqs
        Now working in /var/folders/n8/bvhdmjbn4ljc498jpsr3rq6r0000gn/T/tmpw8_cthqs/distribute-0.6.34
        Building a Distribute egg in /private/var/folders/n8/bvhdmjbn4ljc498jpsr3rq6r0000gn/T/pip-build-aby3evdm/funcsigs
        RefactoringTool: Skipping implicit fixer: buffer
        RefactoringTool: Skipping implicit fixer: idioms
        RefactoringTool: Skipping implicit fixer: set_literal
        RefactoringTool: Skipping implicit fixer: ws_comma
        RefactoringTool: Refactored build/src/tests/api_tests.txt
        RefactoringTool: Files that were modified:
        RefactoringTool: build/src/tests/api_tests.txt
        --- build/src/tests/api_tests.txt	(original)
        +++ build/src/tests/api_tests.txt	(refactored)
        @@ -39,7 +39,7 @@
             >>> dist.py_version == sys.version[:3]
             True
        -    >>> print dist.platform
        +    >>> print(dist.platform)
             None
         Including various computed attributes::
        @@ -199,7 +199,7 @@
         You can ask a WorkingSet to ``find()`` a distribution matching a requirement::
             >>> from pkg_resources import Requirement
        -    >>> print ws.find(Requirement.parse("Foo==1.0"))    # no match, return None
        +    >>> print(ws.find(Requirement.parse("Foo==1.0")))    # no match, return None
             None
             >>> ws.find(Requirement.parse("Bar==0.9"))  # match, return distribution
        @@ -211,7 +211,7 @@
             >>> try:
             ...     ws.find(Requirement.parse("Bar==1.0"))
             ... except VersionConflict:
        -    ...     print 'ok'
        +    ...     print('ok')
             ok
         You can subscribe a callback function to receive notifications whenever a new
        @@ -219,7 +219,7 @@
         once for each existing distribution in the working set, and then is called
         again for new distributions added thereafter::
        -    >>> def added(dist): print "Added", dist
        +    >>> def added(dist): print("Added", dist)
             >>> ws.subscribe(added)
             Added Bar 0.9
             >>> foo12 = Distribution(project_name="Foo", version="1.2", location="f12")
        Traceback (most recent call last):
          File "/private/var/folders/n8/bvhdmjbn4ljc498jpsr3rq6r0000gn/T/tmpw8_cthqs/distribute-0.6.34/build/src/pkg_resources.py", line 2463, in _dep_map
            return self.__dep_map
          File "/private/var/folders/n8/bvhdmjbn4ljc498jpsr3rq6r0000gn/T/tmpw8_cthqs/distribute-0.6.34/build/src/pkg_resources.py", line 2288, in __getattr__
            raise AttributeError(attr)
        AttributeError: _DistInfoDistribution__dep_map
        During handling of the above exception, another exception occurred:
        Traceback (most recent call last):
          File "setup.py", line 248, in <module>
            scripts = scripts,
          File "/Users/hynek/.pyenv/versions/3.4.2/lib/python3.4/distutils/core.py", line 108, in setup
            _setup_distribution = dist = klass(attrs)
          File "/private/var/folders/n8/bvhdmjbn4ljc498jpsr3rq6r0000gn/T/tmpw8_cthqs/distribute-0.6.34/build/src/setuptools/dist.py", line 225, in __init__
            _Distribution.__init__(self,attrs)
          File "/Users/hynek/.pyenv/versions/3.4.2/lib/python3.4/distutils/dist.py", line 280, in __init__
            self.finalize_options()
          File "/private/var/folders/n8/bvhdmjbn4ljc498jpsr3rq6r0000gn/T/tmpw8_cthqs/distribute-0.6.34/build/src/setuptools/dist.py", line 257, in finalize_options
            ep.require(installer=self.fetch_build_egg)
          File "/private/var/folders/n8/bvhdmjbn4ljc498jpsr3rq6r0000gn/T/tmpw8_cthqs/distribute-0.6.34/build/src/pkg_resources.py", line 2026, in require
            working_set.resolve(self.dist.requires(self.extras),env,installer)))
          File "/private/var/folders/n8/bvhdmjbn4ljc498jpsr3rq6r0000gn/T/tmpw8_cthqs/distribute-0.6.34/build/src/pkg_resources.py", line 2236, in requires
            dm = self._dep_map
          File "/private/var/folders/n8/bvhdmjbn4ljc498jpsr3rq6r0000gn/T/tmpw8_cthqs/distribute-0.6.34/build/src/pkg_resources.py", line 2465, in _dep_map
            self.__dep_map = self._compute_dependencies()
          File "/private/var/folders/n8/bvhdmjbn4ljc498jpsr3rq6r0000gn/T/tmpw8_cthqs/distribute-0.6.34/build/src/pkg_resources.py", line 2498, in _compute_dependencies
            common = frozenset(reqs_for_extra(None))
          File "/private/var/folders/n8/bvhdmjbn4ljc498jpsr3rq6r0000gn/T/tmpw8_cthqs/distribute-0.6.34/build/src/pkg_resources.py", line 2495, in reqs_for_extra
            if req.marker_fn(override={'extra':extra}):
          File "/private/var/folders/n8/bvhdmjbn4ljc498jpsr3rq6r0000gn/T/tmpw8_cthqs/distribute-0.6.34/build/src/_markerlib/markers.py", line 109, in marker_fn
            return eval(compiled_marker, environment)
          File "<environment marker>", line 1, in <module>
        NameError: name 'sys_platform' is not defined
        /private/var/folders/n8/bvhdmjbn4ljc498jpsr3rq6r0000gn/T/pip-build-aby3evdm/funcsigs/distribute-0.6.34-py3.4.egg
        Traceback (most recent call last):
          File "/private/var/folders/n8/bvhdmjbn4ljc498jpsr3rq6r0000gn/T/pip-build-aby3evdm/funcsigs/distribute_setup.py", line 150, in use_setuptools
            raise ImportError
        ImportError
        During handling of the above exception, another exception occurred:
        Traceback (most recent call last):
          File "<string>", line 20, in <module>
          File "/private/var/folders/n8/bvhdmjbn4ljc498jpsr3rq6r0000gn/T/pip-build-aby3evdm/funcsigs/setup.py", line 3, in <module>
            use_setuptools()
          File "/private/var/folders/n8/bvhdmjbn4ljc498jpsr3rq6r0000gn/T/pip-build-aby3evdm/funcsigs/distribute_setup.py", line 152, in use_setuptools
            return _do_download(version, download_base, to_dir, download_delay)
          File "/private/var/folders/n8/bvhdmjbn4ljc498jpsr3rq6r0000gn/T/pip-build-aby3evdm/funcsigs/distribute_setup.py", line 132, in _do_download
            _build_egg(egg, tarball, to_dir)
          File "/private/var/folders/n8/bvhdmjbn4ljc498jpsr3rq6r0000gn/T/pip-build-aby3evdm/funcsigs/distribute_setup.py", line 123, in _build_egg
            raise IOError('Could not build the egg.')
        OSError: Could not build the egg.
        Complete output from command python setup.py egg_info:
        Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.34.tar.gz
    
        Extracting in /var/folders/n8/bvhdmjbn4ljc498jpsr3rq6r0000gn/T/tmpw8_cthqs
    
        Now working in /var/folders/n8/bvhdmjbn4ljc498jpsr3rq6r0000gn/T/tmpw8_cthqs/distribute-0.6.34
    
        Building a Distribute egg in /private/var/folders/n8/bvhdmjbn4ljc498jpsr3rq6r0000gn/T/pip-build-aby3evdm/funcsigs
    
        creating build
    
        creating build/src
    
        creating build/src/_markerlib
    
        creating build/src/docs
    
        creating build/src/docs/_templates
    
        creating build/src/docs/_theme
    
        creating build/src/docs/_theme/nature
    
        creating build/src/docs/_theme/nature/static
    
        creating build/src/docs/build
    
        creating build/src/docs/build/html
    
        creating build/src/docs/build/html/_sources
    
        creating build/src/docs/build/html/_static
    
        creating build/src/setuptools
    
        creating build/src/setuptools/command
    
        creating build/src/setuptools/tests
    
        creating build/src/setuptools/tests/indexes
    
        creating build/src/setuptools/tests/indexes/test_links_priority
    
        creating build/src/setuptools/tests/indexes/test_links_priority/simple
    
        creating build/src/setuptools/tests/indexes/test_links_priority/simple/foobar
    
        creating build/src/tests
    
        creating build/src/tests/shlib_test
    
        copying setuptools/__init__.py -> build/src/setuptools
    
        copying setuptools/archive_util.py -> build/src/setuptools
    
        copying setuptools/depends.py -> build/src/setuptools
    
        copying setuptools/dist.py -> build/src/setuptools
    
        copying setuptools/extension.py -> build/src/setuptools
    
        copying setuptools/package_index.py -> build/src/setuptools
    
        copying setuptools/sandbox.py -> build/src/setuptools
    
        copying setuptools/script template (dev).py -> build/src/setuptools
    
        copying setuptools/script template.py -> build/src/setuptools
    
        copying setuptools/tests/__init__.py -> build/src/setuptools/tests
    
        copying setuptools/tests/doctest.py -> build/src/setuptools/tests
    
        copying setuptools/tests/py26compat.py -> build/src/setuptools/tests
    
        copying setuptools/tests/server.py -> build/src/setuptools/tests
    
        copying setuptools/tests/test_bdist_egg.py -> build/src/setuptools/tests
    
        copying setuptools/tests/test_build_ext.py -> build/src/setuptools/tests
    
        copying setuptools/tests/test_develop.py -> build/src/setuptools/tests
    
        copying setuptools/tests/test_dist_info.py -> build/src/setuptools/tests
    
        copying setuptools/tests/test_easy_install.py -> build/src/setuptools/tests
    
        copying setuptools/tests/test_markerlib.py -> build/src/setuptools/tests
    
        copying setuptools/tests/test_packageindex.py -> build/src/setuptools/tests
    
        copying setuptools/tests/test_resources.py -> build/src/setuptools/tests
    
        copying setuptools/tests/test_sandbox.py -> build/src/setuptools/tests
    
        copying setuptools/tests/test_sdist.py -> build/src/setuptools/tests
    
        copying setuptools/tests/test_test.py -> build/src/setuptools/tests
    
        copying setuptools/tests/test_upload_docs.py -> build/src/setuptools/tests
    
        copying setuptools/command/__init__.py -> build/src/setuptools/command
    
        copying setuptools/command/alias.py -> build/src/setuptools/command
    
        copying setuptools/command/bdist_egg.py -> build/src/setuptools/command
    
        copying setuptools/command/bdist_rpm.py -> build/src/setuptools/command
    
        copying setuptools/command/bdist_wininst.py -> build/src/setuptools/command
    
        copying setuptools/command/build_ext.py -> build/src/setuptools/command
    
        copying setuptools/command/build_py.py -> build/src/setuptools/command
    
        copying setuptools/command/develop.py -> build/src/setuptools/command
    
        copying setuptools/command/easy_install.py -> build/src/setuptools/command
    
        copying setuptools/command/egg_info.py -> build/src/setuptools/command
    
        copying setuptools/command/install.py -> build/src/setuptools/command
    
        copying setuptools/command/install_egg_info.py -> build/src/setuptools/command
    
        copying setuptools/command/install_lib.py -> build/src/setuptools/command
    
        copying setuptools/command/install_scripts.py -> build/src/setuptools/command
    
        copying setuptools/command/register.py -> build/src/setuptools/command
    
        copying setuptools/command/rotate.py -> build/src/setuptools/command
    
        copying setuptools/command/saveopts.py -> build/src/setuptools/command
    
        copying setuptools/command/sdist.py -> build/src/setuptools/command
    
        copying setuptools/command/setopt.py -> build/src/setuptools/command
    
        copying setuptools/command/test.py -> build/src/setuptools/command
    
        copying setuptools/command/upload.py -> build/src/setuptools/command
    
        copying setuptools/command/upload_docs.py -> build/src/setuptools/command
    
        copying setuptools/tests/win_script_wrapper.txt -> build/src/setuptools/tests
    
        copying setuptools/cli-32.exe -> build/src/setuptools
    
        copying setuptools/cli-64.exe -> build/src/setuptools
    
        copying setuptools/cli.exe -> build/src/setuptools
    
        copying setuptools/gui-32.exe -> build/src/setuptools
    
        copying setuptools/gui-64.exe -> build/src/setuptools
    
        copying setuptools/gui.exe -> build/src/setuptools
    
        copying tests/install_test.py -> build/src/tests
    
        copying tests/manual_test.py -> build/src/tests
    
        copying tests/test_distribute_setup.py -> build/src/tests
    
        copying tests/shlib_test/setup.py -> build/src/tests/shlib_test
    
        copying tests/shlib_test/test_hello.py -> build/src/tests/shlib_test
    
        copying tests/shlib_test/hello.c -> build/src/tests/shlib_test
    
        copying tests/shlib_test/hellolib.c -> build/src/tests/shlib_test
    
        copying tests/shlib_test/hello.pyx -> build/src/tests/shlib_test
    
        copying tests/api_tests.txt -> build/src/tests
    
        RefactoringTool: Skipping implicit fixer: buffer
    
        RefactoringTool: Skipping implicit fixer: idioms
    
        RefactoringTool: Skipping implicit fixer: set_literal
    
        RefactoringTool: Skipping implicit fixer: ws_comma
    
        RefactoringTool: Refactored build/src/tests/api_tests.txt
    
        RefactoringTool: Files that were modified:
    
        RefactoringTool: build/src/tests/api_tests.txt
    
        --- build/src/tests/api_tests.txt	(original)
    
        +++ build/src/tests/api_tests.txt	(refactored)
    
        @@ -39,7 +39,7 @@
    
             >>> dist.py_version == sys.version[:3]
    
             True
    
    
    
        -    >>> print dist.platform
    
        +    >>> print(dist.platform)
    
             None
    
    
    
         Including various computed attributes::
    
        @@ -199,7 +199,7 @@
    
         You can ask a WorkingSet to ``find()`` a distribution matching a requirement::
    
    
    
             >>> from pkg_resources import Requirement
    
        -    >>> print ws.find(Requirement.parse("Foo==1.0"))    # no match, return None
    
        +    >>> print(ws.find(Requirement.parse("Foo==1.0")))    # no match, return None
    
             None
    
    
    
             >>> ws.find(Requirement.parse("Bar==0.9"))  # match, return distribution
    
        @@ -211,7 +211,7 @@
    
             >>> try:
    
             ...     ws.find(Requirement.parse("Bar==1.0"))
    
             ... except VersionConflict:
    
        -    ...     print 'ok'
    
        +    ...     print('ok')
    
             ok
    
    
    
         You can subscribe a callback function to receive notifications whenever a new
    
        @@ -219,7 +219,7 @@
    
         once for each existing distribution in the working set, and then is called
    
         again for new distributions added thereafter::
    
    
    
        -    >>> def added(dist): print "Added", dist
    
        +    >>> def added(dist): print("Added", dist)
    
             >>> ws.subscribe(added)
    
             Added Bar 0.9
    
             >>> foo12 = Distribution(project_name="Foo", version="1.2", location="f12")
    
        copying setuptools/tests/indexes/test_links_priority/external.html -> build/src/setuptools/tests/indexes/test_links_priority
    
        copying setuptools/tests/indexes/test_links_priority/simple/foobar/index.html -> build/src/setuptools/tests/indexes/test_links_priority/simple/foobar
    
        copying docs/conf.py -> build/src/docs
    
        copying docs/easy_install.txt -> build/src/docs
    
        copying docs/index.txt -> build/src/docs
    
        copying docs/pkg_resources.txt -> build/src/docs
    
        copying docs/python3.txt -> build/src/docs
    
        copying docs/roadmap.txt -> build/src/docs
    
        copying docs/setuptools.txt -> build/src/docs
    
        copying docs/using.txt -> build/src/docs
    
        copying docs/build/html/_sources/easy_install.txt -> build/src/docs/build/html/_sources
    
        copying docs/build/html/_sources/index.txt -> build/src/docs/build/html/_sources
    
        copying docs/build/html/_sources/pkg_resources.txt -> build/src/docs/build/html/_sources
    
        copying docs/build/html/_sources/python3.txt -> build/src/docs/build/html/_sources
    
        copying docs/build/html/_sources/roadmap.txt -> build/src/docs/build/html/_sources
    
        copying docs/build/html/_sources/setuptools.txt -> build/src/docs/build/html/_sources
    
        copying docs/build/html/_sources/using.txt -> build/src/docs/build/html/_sources
    
        copying docs/_theme/nature/theme.conf -> build/src/docs/_theme/nature
    
        copying docs/build/html/_static/basic.css -> build/src/docs/build/html/_static
    
        copying docs/build/html/_static/nature.css -> build/src/docs/build/html/_static
    
        copying docs/build/html/_static/pygments.css -> build/src/docs/build/html/_static
    
        copying docs/_theme/nature/static/pygments.css -> build/src/docs/_theme/nature/static
    
        copying docs/_theme/nature/static/nature.css_t -> build/src/docs/_theme/nature/static
    
        copying docs/Makefile -> build/src/docs
    
        copying docs/_templates/indexsidebar.html -> build/src/docs/_templates
    
        copying _markerlib/__init__.py -> build/src/_markerlib
    
        copying _markerlib/markers.py -> build/src/_markerlib
    
        copying distribute_setup.py -> build/src
    
        copying easy_install.py -> build/src
    
        copying pkg_resources.py -> build/src
    
        copying release.py -> build/src
    
        copying setup.py -> build/src
    
        copying site.py -> build/src
    
        copying CHANGES.txt -> build/src
    
        copying CONTRIBUTORS.txt -> build/src
    
        copying DEVGUIDE.txt -> build/src
    
        copying README.txt -> build/src
    
        copying MANIFEST.in -> build/src
    
        copying launcher.c -> build/src
    
        Skipping implicit fixer: buffer
    
        Skipping implicit fixer: idioms
    
        Skipping implicit fixer: set_literal
    
        Skipping implicit fixer: ws_comma
    
        Traceback (most recent call last):
    
          File "/private/var/folders/n8/bvhdmjbn4ljc498jpsr3rq6r0000gn/T/tmpw8_cthqs/distribute-0.6.34/build/src/pkg_resources.py", line 2463, in _dep_map
    
            return self.__dep_map
    
          File "/private/var/folders/n8/bvhdmjbn4ljc498jpsr3rq6r0000gn/T/tmpw8_cthqs/distribute-0.6.34/build/src/pkg_resources.py", line 2288, in __getattr__
    
            raise AttributeError(attr)
    
        AttributeError: _DistInfoDistribution__dep_map
    
    
    
        During handling of the above exception, another exception occurred:
    
    
    
        Traceback (most recent call last):
    
          File "setup.py", line 248, in <module>
    
            scripts = scripts,
    
          File "/Users/hynek/.pyenv/versions/3.4.2/lib/python3.4/distutils/core.py", line 108, in setup
    
            _setup_distribution = dist = klass(attrs)
    
          File "/private/var/folders/n8/bvhdmjbn4ljc498jpsr3rq6r0000gn/T/tmpw8_cthqs/distribute-0.6.34/build/src/setuptools/dist.py", line 225, in __init__
    
            _Distribution.__init__(self,attrs)
    
          File "/Users/hynek/.pyenv/versions/3.4.2/lib/python3.4/distutils/dist.py", line 280, in __init__
    
            self.finalize_options()
    
          File "/private/var/folders/n8/bvhdmjbn4ljc498jpsr3rq6r0000gn/T/tmpw8_cthqs/distribute-0.6.34/build/src/setuptools/dist.py", line 257, in finalize_options
    
            ep.require(installer=self.fetch_build_egg)
    
          File "/private/var/folders/n8/bvhdmjbn4ljc498jpsr3rq6r0000gn/T/tmpw8_cthqs/distribute-0.6.34/build/src/pkg_resources.py", line 2026, in require
    
            working_set.resolve(self.dist.requires(self.extras),env,installer)))
    
          File "/private/var/folders/n8/bvhdmjbn4ljc498jpsr3rq6r0000gn/T/tmpw8_cthqs/distribute-0.6.34/build/src/pkg_resources.py", line 2236, in requires
    
            dm = self._dep_map
    
          File "/private/var/folders/n8/bvhdmjbn4ljc498jpsr3rq6r0000gn/T/tmpw8_cthqs/distribute-0.6.34/build/src/pkg_resources.py", line 2465, in _dep_map
    
            self.__dep_map = self._compute_dependencies()
    
          File "/private/var/folders/n8/bvhdmjbn4ljc498jpsr3rq6r0000gn/T/tmpw8_cthqs/distribute-0.6.34/build/src/pkg_resources.py", line 2498, in _compute_dependencies
    
            common = frozenset(reqs_for_extra(None))
    
          File "/private/var/folders/n8/bvhdmjbn4ljc498jpsr3rq6r0000gn/T/tmpw8_cthqs/distribute-0.6.34/build/src/pkg_resources.py", line 2495, in reqs_for_extra
    
            if req.marker_fn(override={'extra':extra}):
    
          File "/private/var/folders/n8/bvhdmjbn4ljc498jpsr3rq6r0000gn/T/tmpw8_cthqs/distribute-0.6.34/build/src/_markerlib/markers.py", line 109, in marker_fn
    
            return eval(compiled_marker, environment)
    
          File "<environment marker>", line 1, in <module>
    
        NameError: name 'sys_platform' is not defined
    
        /private/var/folders/n8/bvhdmjbn4ljc498jpsr3rq6r0000gn/T/pip-build-aby3evdm/funcsigs/distribute-0.6.34-py3.4.egg
    
        Traceback (most recent call last):
    
          File "/private/var/folders/n8/bvhdmjbn4ljc498jpsr3rq6r0000gn/T/pip-build-aby3evdm/funcsigs/distribute_setup.py", line 150, in use_setuptools
    
            raise ImportError
    
        ImportError
    
    
    
        During handling of the above exception, another exception occurred:
    
    
    
        Traceback (most recent call last):
    
          File "<string>", line 20, in <module>
    
          File "/private/var/folders/n8/bvhdmjbn4ljc498jpsr3rq6r0000gn/T/pip-build-aby3evdm/funcsigs/setup.py", line 3, in <module>
    
            use_setuptools()
    
          File "/private/var/folders/n8/bvhdmjbn4ljc498jpsr3rq6r0000gn/T/pip-build-aby3evdm/funcsigs/distribute_setup.py", line 152, in use_setuptools
    
            return _do_download(version, download_base, to_dir, download_delay)
    
          File "/private/var/folders/n8/bvhdmjbn4ljc498jpsr3rq6r0000gn/T/pip-build-aby3evdm/funcsigs/distribute_setup.py", line 132, in _do_download
    
            _build_egg(egg, tarball, to_dir)
    
          File "/private/var/folders/n8/bvhdmjbn4ljc498jpsr3rq6r0000gn/T/pip-build-aby3evdm/funcsigs/distribute_setup.py", line 123, in _build_egg
    
            raise IOError('Could not build the egg.')
    
        OSError: Could not build the egg.
    
        ----------------------------------------
    

    • Bitbucket: https://bitbucket.org/antocuni/pdb/issue/37
    bug critical 
    opened by antocuni 15
  • Namespace confusion

    Namespace confusion

    (CPython) PDB's usual default exec() behavior handles namespaces in very confusing ways

    Consider the following program:

    spam = "global"
    
    def func():
        eggs = "local"
        shopping = ["eggs"]
        breakpoint()
        print(eggs)
        print(shopping)
        print(ham)
    
    func()
    
    1. Restrictive class namespace rules
    -> print(eggs)
    (Pdb++) [spam for i in range(2)]
    ['global', 'global']
    (Pdb++) [eggs for i in range(2)]
    *** NameError: name 'eggs' is not defined
    

    This happens because PDB passes globals and locals and "If exec gets two separate objects as globals and locals, the code will be executed as if it were embedded in a class definition."

    1. Confusing f_locals behavior

    a)

    -> print(ham)
    (Pdb++) ham = "set from pdb"
    (Pdb++) print(ham)
    set from pdb
    (Pdb++) s
    NameError: name 'ham' is not defined
    

    b)

    [1] > .*(7)func()
    -> print(eggs)
    (Pdb++) ham = "set from pdb"
    (Pdb++) print(ham)
    set from pdb
    (Pdb++) step
    local
    [1] > .*(8)func()
    -> print(shopping)
    (Pdb++) s
    ['eggs']
    [1] > .*(9)func()
    -> print(ham)
    (Pdb++) print(ham)
    set from pdb
    (Pdb++) s
    NameError: name 'ham' is not defined
    

    c)

    (Pdb++) eggs = "redefined from pdb"
    (Pdb++) print(eggs)
    changed from pdb
    (Pdb++) step
    local
    [1] > .*(8)func()
    -> print(shopping)
    (Pdb++) print(eggs)
    local
    

    d)

    -> print(eggs)
    (Pdb++) del eggs
    (Pdb++) print(eggs)
    *** NameError: name 'eggs' is not defined
    (Pdb++) s
    local
    [1] > .*(8)func()
    -> print(shopping)
    (Pdb++) print(eggs)
    local
    

    e) a counterexample

    -> print(shopping)
    (Pdb++) shopping.append("appended from pdb")
    (Pdb++) print(shopping)
    ['eggs', 'appended from pdb']
    (Pdb++) step
    ['eggs', 'appended from pdb']
    
    bug 
    opened by technillogue 14
  • print and log statements in sticky mode

    print and log statements in sticky mode

    Hi! Consider the following simple file:

    import logging
    
    logger = logging.getLogger(__name__)
    logging.basicConfig(
        level=logging.INFO,
        handlers=[logging.StreamHandler()],
    )
    
    breakpoint()
    x = 2
    print(x)
    y = 3
    logger.info(y)
    z = x + y
    

    If I use sticky_by_default = True in my config file then when using n to move along lines both print and logger statements are ignored (not actually ignored but since the screen is repainted the message is lost/not shown). Is there a way to avoid using this while on sticky mode?

    enhancement 
    opened by petobens 14
  • `AttributeError: 'NoneType'` with `python -m pdb`

    `AttributeError: 'NoneType'` with `python -m pdb`

    Hi there! First, thanks for this. I was reminded of it from Clayton Parker's So you think you can PDB? talk at PyCon 2015.

    I've got a particular use case where it would be easier to run python -m pdb and set a breakpoint, rather than using pdb.set_trace(). However, when I try that, I get the following exception:

    $ python -m pdb test.py
    Traceback (most recent call last):
      File "/usr/local/Cellar/python@2/2.7.15_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 174, in _run_module_as_main
        "__main__", fname, loader, pkg_name)
      File "/usr/local/Cellar/python@2/2.7.15_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code
        exec code in run_globals
      File "/Users/brian/Code/test-pdbpp/venv/lib/python2.7/site-packages/_pdbpp_path_hack/pdb.py", line 5, in <module>
        exec(compile(f.read(), pdb_path, 'exec'))
      File "/Users/brian/Code/test-pdbpp/venv/lib/python2.7/site-packages/pdb.py", line 1165, in <module>
        pdb.main()
      File "/usr/local/Cellar/python@2/2.7.15_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pdb.py", line 1329, in main
        traceback.print_exc()
    AttributeError: 'NoneType' object has no attribute 'print_exc'
    

    Some more details:

    $ python --version
    Python 2.7.15
    
    $ pip freeze
    fancycompleter==0.8
    pdbpp==0.9.3
    Pygments==2.3.1
    pyrepl==0.8.4
    wmctrl==0.3
    
    $ cat test.py
    print('Hello World!')
    

    If I uninstall pdbpp, I get the expected result:

    $ python -m pdb test.py
    > /Users/brian/Code/test-pdbpp/test.py(1)<module>()
    -> print('Hello World!')
    (Pdb)
    
    bug 
    opened by bhrutledge 12
  • Make `edit at line` command work for sublime text

    Make `edit at line` command work for sublime text

    Currently, the edit command runs the following command:

    $EDITOR +line file
    

    As this notation might be a standard for some editors, this doesn't work for sublime text, where the syntax for opening a file is:

    subl file:line
    

    I propose an option that would change the default editor call syntax to the colon-notation. Like:

    editor_line_syntax = 'option' # default, give the line as a command option.  $EDITOR +<line> <file>
                         'suffix'  # (give the file line as a suffix, as accepted by sublime text : $EDITOR <file>:<line>
    
    enhancement 
    opened by antoine-gallix 12
  • pip install does not override original pdb behavior

    pip install does not override original pdb behavior

    After installing the package with pip the the original pdb will be loaded. If the pdb.py is called directly from the sources it works.

    System Linux Mint 19.3

    bug needs info 
    opened by carand 11
  • realgud:pdb-remote can't track the file location with pdbpp

    realgud:pdb-remote can't track the file location with pdbpp

    At least it's not obvious how to achieve that. When I install pdbpp instead of pdb, file tracking in realgud:pdb-remote in emacs stops working and it starts working again when I uninstall pdbpp.

    python 3.4.4 emacs 26.2 realgud.el: 1.4.5 pdbpp-0.10.0

    Not sure what else might be relevant.

    bug 
    opened by TauPan 11
  • Possible bug: can't interact with pdbpp prompt

    Possible bug: can't interact with pdbpp prompt

    Hi, I'm attempting to use pdbpp to debug a dockerized python-flask application. I was able to access the pdbpp prompt by setting a breakpoint with pdbpp.set_trace() and running this command in terminal: docker-compose run --rm -p 3000:3000 myApp flask run --host=0.0.0.0 --port=3000
    When I attempt to type a command in the pdbb prompt, it fails to process the command. See below for an example:

    [34] > MyApp/app/main/forms.py(35)FindUserForm()
    -> name = StringField(
    (Pdb++) list
    *** NameError: name 'lt' is not defined
    (Pdb++) l
    *** NameError: name 'lt' is not defined
    (Pdb++) list
    

    I'm using a virtualenv with Python 3.7.1, pdbpp 0.9.15 and Docker version 18.09.03. My OS is Ubuntu 18.0.4.

    I had a similar error when using ipdb and had switched to pdbpp after reading this stackoverflow thread.

    I tried adding the below lines to the myApp service in my docker-compose.yml file

         stdin_open: true
            tty: true
    

    Unfortunately, it didn't resolve the issue. Have other users seen this error when debugging with pdbpp?

    opened by McEileen 11
  • Does not work when installed from wheel

    Does not work when installed from wheel

    Originally reported by: Aleks Bunin (Bitbucket: b-enlnt, GitHub: Unknown)


    I prepare wheel for every package I use. When I prepared wheel package for pdbpp, and installed that wheel - it did not work, while when installing from sources worked fine.

    Wheel preparation:

    $ (unset PIP_NO_INDEX; pip wheel pdbpp)
    $ pip install pdbpp
    

    When I used import pdb; pdb.set_trace() in the code, regular pdb was loaded.

    When I installed pdbpp from sources, pdbpp will work fine.

    I'm using wheel==0.24.0.


    • Bitbucket: https://bitbucket.org/antocuni/pdb/issue/31
    bug major 
    opened by antocuni 11
  • build(deps): bump wheel from 0.36.2 to 0.38.1 in /.github/workflows/requirements

    build(deps): bump wheel from 0.36.2 to 0.38.1 in /.github/workflows/requirements

    Bumps wheel from 0.36.2 to 0.38.1.

    Changelog

    Sourced from wheel's changelog.

    Release Notes

    UNRELEASED

    • Updated vendored packaging to 22.0

    0.38.4 (2022-11-09)

    • Fixed PKG-INFO conversion in bdist_wheel mangling UTF-8 header values in METADATA (PR by Anderson Bravalheri)

    0.38.3 (2022-11-08)

    • Fixed install failure when used with --no-binary, reported on Ubuntu 20.04, by removing setup_requires from setup.cfg

    0.38.2 (2022-11-05)

    • Fixed regression introduced in v0.38.1 which broke parsing of wheel file names with multiple platform tags

    0.38.1 (2022-11-04)

    • Removed install dependency on setuptools
    • The future-proof fix in 0.36.0 for converting PyPy's SOABI into a abi tag was faulty. Fixed so that future changes in the SOABI will not change the tag.

    0.38.0 (2022-10-21)

    • Dropped support for Python < 3.7
    • Updated vendored packaging to 21.3
    • Replaced all uses of distutils with setuptools
    • The handling of license_files (including glob patterns and default values) is now delegated to setuptools>=57.0.0 (#466). The package dependencies were updated to reflect this change.
    • Fixed potential DoS attack via the WHEEL_INFO_RE regular expression
    • Fixed ValueError: ZIP does not support timestamps before 1980 when using SOURCE_DATE_EPOCH=0 or when on-disk timestamps are earlier than 1980-01-01. Such timestamps are now changed to the minimum value before packaging.

    0.37.1 (2021-12-22)

    • Fixed wheel pack duplicating the WHEEL contents when the build number has changed (#415)
    • Fixed parsing of file names containing commas in RECORD (PR by Hood Chatham)

    0.37.0 (2021-08-09)

    • Added official Python 3.10 support
    • Updated vendored packaging library to v20.9

    ... (truncated)

    Commits
    • 6f1608d Created a new release
    • cf8f5ef Moved news item from PR #484 to its proper place
    • 9ec2016 Removed install dependency on setuptools (#483)
    • 747e1f6 Fixed PyPy SOABI parsing (#484)
    • 7627548 [pre-commit.ci] pre-commit autoupdate (#480)
    • 7b9e8e1 Test on Python 3.11 final
    • a04dfef Updated the pypi-publish action
    • 94bb62c Fixed docs not building due to code style changes
    • d635664 Updated the codecov action to the latest version
    • fcb94cd Updated version to match the release
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

    You can disable automated security fix PRs for this repo from the Security Alerts page.

    dependencies 
    opened by dependabot[bot] 0
  • build(deps): bump certifi from 2021.5.30 to 2022.12.7 in /.github/workflows/requirements

    build(deps): bump certifi from 2021.5.30 to 2022.12.7 in /.github/workflows/requirements

    Bumps certifi from 2021.5.30 to 2022.12.7.

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
    • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
    • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
    • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

    You can disable automated security fix PRs for this repo from the Security Alerts page.

    dependencies 
    opened by dependabot[bot] 0
  • Ability to see stdout while in sticky

    Ability to see stdout while in sticky

    Is there a way (or would it be possible to make one - I could help) to show at least the last few lines of stdout (and I guess stderr) while in sticky mode?

    I tend to use sticky as default but this means that when I step over something that outputs something that output just flashes up before sticky redraws and then it's gone. Maybe this could be achieved with display somehow but I note that displaying only happens after e.g. c and not after e.g. n (which i'm assuming is by design)

    opened by richjames0 0
  • An error occurs when exiting (BdbQuit)

    An error occurs when exiting (BdbQuit)

    I update pyreadline to pyreadline3 with following command

    pip install --upgrade https://github.com/pyreadline3/pyreadline3/tarball/master

    Now,it works in windows with python3.10,but it raise a error when i use q to quit

    image

    window terminal,powershell7.2.6,python3.10.4

    needs info 
    opened by brucmao 2
  • Official 3.10 compat release when?

    Official 3.10 compat release when?

    Just ran into the (maybe newb) problem of not being able to include git deps in a distribution on pypi in https://github.com/goodboy/tractor/issues/323.

    I'm wondering, what's the approx eta on an official release that's fully 3.10 compat? We're coming up on 3.11 official release soon so it'd be good to get support before that 🏄🏼

    bug 
    opened by goodboy 1
Releases(0.10.3)
  • 0.10.3(Jul 9, 2021)

    Minor bugfix release, moving Continuous Integration from Travis/AppVeyor to GitHub Actions, based on changes on master, but without the (more invasive) (test) fixes for Windows.

    • Fixes

      • Fix hideframe decorator for Python 3.8+ (#263)
      • Fix hidden_frames discrepancy with IPython (#426)
    • Misc

      • ci: move to GitHub Actions (#444, #445)
      • ci: use .coveragerc (#304)
      • qa/flake8 fixes
      • test fix for newer PyPy3
    Source code(tar.gz)
    Source code(zip)
  • 0.9.3(Nov 28, 2018)

    Changes between 0.9.2 and 0.9.3

    • Features

      • Improve sticky_by_default: don't clear screen the first time (#83)
      • Handle header kwarg added with Python 3.7 in pdb.set_trace (#115)
      • config: allow to force use_terminal256formatter (#112)
      • Add heuristic for which 'list' is meant (#82)
    • Fixes

      • Skip/step over pdb.set_trace() (#119)
      • Handle completions from original pdb (#116)
      • Handle set_trace being invoked during completion (#89)
      • _pdbpp_path_hack/pdb.py: fix ResourceWarning (#97)
      • Fix "python -m pdb" (#108)
      • setup/interaction: use/handle return value from pdb.Pdb.setup (#107)
      • interaction: use _cmdloop if available (#106)
      • Fixed virtualenv sys.path shuffling issue (#85)
      • set_trace: do not delete pdb.curframe (#103)
      • forget: only call pdb.Pdb.forget with GLOBAL_PDB once
    • Tests

      • Travis: test pypy3
      • Travis/tox: add py37, remove nightly
      • tests: PdbTest: use nosigint=True (#117)
      • Add test_debug_with_overridden_continue (#113)
      • tests: re-enable/fix test_utf8 (#110)
      • tests: fix conditional skipping with test_pdbrc_continue
      • tests: runpdb: print output on Exceptions
      • pytest.ini: addopts: -ra
      • tests: handle pytest's --assert=plain mode
      • tests: harden check: match all lines
      • tests: fix flake8 errors and invalid-escape DeprecationWarnings
    • Misc

      • setup.py: add trove classifier for "… :: Debuggers"
      • doc: separate usage section (#105)
      • Format code: flake8 clean, using autopep8 mainly (#118)
      • Add wheels support
      • README: grammar and example for break_on_setattr (#99)
      • README: fix formatting
      • Simplify the code, since we no longer support python 2.6
    Source code(tar.gz)
    Source code(zip)
Owner
null
A drop-in replacement for Django's runserver.

About A drop in replacement for Django's built-in runserver command. Features include: An extendable interface for handling things such as real-time l

David Cramer 1.3k Dec 15, 2022
A drop-in replacement for Django's runserver.

About A drop in replacement for Django's built-in runserver command. Features include: An extendable interface for handling things such as real-time l

David Cramer 1.3k Dec 15, 2022
Integration of IPython pdb

IPython pdb Use ipdb exports functions to access the IPython debugger, which features tab completion, syntax highlighting, better tracebacks, better i

Godefroid Chapelle 1.7k Jan 7, 2023
Full-screen console debugger for Python

PuDB: a console-based visual debugger for Python Its goal is to provide all the niceties of modern GUI-based debuggers in a more lightweight and keybo

Andreas Klöckner 2.6k Jan 1, 2023
Debugger capable of attaching to and injecting code into python processes.

DISCLAIMER: This is not an official google project, this is just something I wrote while at Google. Pyringe What this is Pyringe is a python debugger

Google 1.6k Dec 15, 2022
Graphical Python debugger which lets you easily view the values of all evaluated expressions

birdseye birdseye is a Python debugger which records the values of expressions in a function call and lets you easily view them after the function exi

Alex Hall 1.5k Dec 24, 2022
Voltron is an extensible debugger UI toolkit written in Python.

Voltron is an extensible debugger UI toolkit written in Python. It aims to improve the user experience of various debuggers (LLDB, GDB, VDB an

snare 5.9k Dec 30, 2022
NoPdb: Non-interactive Python Debugger

NoPdb: Non-interactive Python Debugger Installation: pip install nopdb Docs: https://nopdb.readthedocs.io/ NoPdb is a programmatic (non-interactive) d

Ondřej Cífka 67 Oct 15, 2022
Tracing instruction in lldb debugger.Just a python-script for lldb.

lldb-trace Tracing instruction in lldb debugger. just a python-script for lldb. How to use it? Break at an address where you want to begin tracing. Im

null 156 Jan 1, 2023
Visual Interaction with Code - A portable visual debugger for python

VIC Visual Interaction with Code A simple tool for debugging and interacting with running python code. This tool is designed to make it easy to inspec

Nathan Blank 1 Nov 16, 2021
An improbable web debugger through WebSockets

wdb - Web Debugger Description wdb is a full featured web debugger based on a client-server architecture. The wdb server which is responsible of manag

Kozea 1.6k Dec 9, 2022
PINCE is a front-end/reverse engineering tool for the GNU Project Debugger (GDB), focused on games.

PINCE is a front-end/reverse engineering tool for the GNU Project Debugger (GDB), focused on games. However, it can be used for any reverse-engi

Korcan Karaokçu 1.5k Jan 1, 2023
Little helper to run Steam apps under Proton with a GDB debugger

protongdb A small little helper for running games with Proton and debugging with GDB Requirements At least Python 3.5 protontricks pip package and its

Joshie 21 Nov 27, 2022
Full featured multi arch/os debugger built on top of PyQt5 and frida

Full featured multi arch/os debugger built on top of PyQt5 and frida

iGio90 1.1k Dec 26, 2022
Arghonaut is an interactive interpreter, visualizer, and debugger for Argh! and Aargh!

Arghonaut Arghonaut is an interactive interpreter, visualizer, and debugger for Argh! and Aargh!, which are Befunge-like esoteric programming language

Aaron Friesen 2 Dec 10, 2021
A simple rubber duck debugger

Rubber Duck Debugger I found myself many times asking a question on StackOverflow or to one of my colleagues just for finding the solution simply by d

null 1 Nov 10, 2021
Hdbg - Historical Debugger

hdbg - Historical Debugger This is in no way a finished product. Do not use this

Fivreld 2 Jan 2, 2022
Trashdbg - TrashDBG the world's worse debugger

The world's worse debugger Over the course of multiple OALABS Twitch streams we

OALabs 21 Jun 17, 2022
The official code of LM-Debugger, an interactive tool for inspection and intervention in transformer-based language models.

LM-Debugger is an open-source interactive tool for inspection and intervention in transformer-based language models. This repository includes the code

Mor Geva 110 Dec 28, 2022