Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reorganize themes and add gray-light-256 and nord-dark-256 themes #612

Merged
merged 13 commits into from
Oct 6, 2023
Merged
4 changes: 3 additions & 1 deletion pudb/debugger.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,6 @@ def __init__(self, stdin=None, stdout=None, term_size=None, steal_output=False,

if Debugger._current_debugger:
raise ValueError("a Debugger instance already exists")
self._current_debugger.append(self)

# Pass remaining kwargs to python debugger framework
bdb.Bdb.__init__(self, **kwargs)
Expand All @@ -210,6 +209,9 @@ def __init__(self, stdin=None, stdout=None, term_size=None, steal_output=False,
for bpoint_descr in load_breakpoints():
self.set_break(*bpoint_descr)

# Okay, now we have a debugger
self._current_debugger.append(self)

def __del__(self):
assert self._current_debugger == [self]
self._current_debugger.pop()
Expand Down
2 changes: 1 addition & 1 deletion pudb/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ def _update_config(check_box, new_state, option_newvalue):

# {{{ themes

from pudb.theme import THEMES
from pudb.themes import THEMES

known_theme = conf_dict["theme"] in THEMES

Expand Down
Loading