We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
.wake
1 parent b204053 commit 5e6e10eCopy full SHA for 5e6e10e
1 file changed
wake/development/globals.py
@@ -20,8 +20,8 @@
20
21
import rich.traceback
22
import rich_click
23
-from rich import print as rich_print
24
from ipdb.__main__ import _init_pdb
+from rich import print as rich_print
25
26
from wake.config import WakeConfig
27
from wake.core import get_logger
@@ -124,6 +124,11 @@ def attach_debugger(
124
assert e is not None
125
assert tb is not None
126
127
+ config = get_config()
128
+ tb_lines = traceback.format_exception(e_type, e, tb)
129
+ (config.project_root_path / ".wake").mkdir(parents=True, exist_ok=True)
130
+ (config.project_root_path / ".wake" / "crash.txt").write_text("".join(tb_lines))
131
+
132
rich_tb = rich.traceback.Traceback.from_exception(e_type, e, tb)
133
console.print(rich_tb)
134
0 commit comments