Skip to content

Commit

Permalink
Merge pull request #25 from cocolato/dev
Browse files Browse the repository at this point in the history
bump version 0.1.4
  • Loading branch information
cocolato authored Mar 13, 2024
2 parents ae96735 + 95c08ee commit d2ef5ae
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions pydumpling/debug_dumpling.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ def load_dumpling(filename):
except Exception:
return pickle.load(f)


def mock_inspect():
inspect.isframe = lambda obj: isinstance(
obj, types.FrameType) or obj.__class__ == FakeFrame
Expand All @@ -25,6 +26,7 @@ def mock_inspect():
inspect.iscode = lambda obj: isinstance(
obj, types.CodeType) or obj.__class__ == FakeCode


def debug_dumpling(dump_file, pdb=pdb):
mock_inspect()
dumpling = load_dumpling(dump_file)
Expand Down
2 changes: 1 addition & 1 deletion pydumpling/pydumpling.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import inspect
from .fake_types import FakeFrame, FakeTraceback

__version__ = "0.1.3"
__version__ = "0.1.4"


def save_dumping(filename=None, tb=None):
Expand Down
2 changes: 1 addition & 1 deletion pydumpling/rpdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import socket
import threading
import sys
import traceback
from .debug_dumpling import load_dumpling, mock_inspect

DEFAULT_ADDR = "127.0.0.1"
Expand Down Expand Up @@ -121,6 +120,7 @@ def unclaim(self, port):
del self.claims[port]
self.lock.release()


# {port: sys.stdout} pairs to track recursive rpdb invocation on same port.
# This scheme doesn't interfere with recursive invocations on separate ports -
# useful, eg, for concurrently debugging separate threads.
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ build-backend = "pdm.backend"

[project]
name = "pydumpling"
version = "0.1.3"
version = "0.1.4"
description = "Python post-mortem debugger"
authors = [
{name = "cocolato", email = "[email protected]"},
Expand Down

0 comments on commit d2ef5ae

Please sign in to comment.