Compare commits
1 Commits
d716c57234
...
4fca7317ea
Author | SHA1 | Date |
---|---|---|
|
4fca7317ea |
|
@ -4,6 +4,11 @@ import sys
|
||||||
import trio
|
import trio
|
||||||
import tractor
|
import tractor
|
||||||
|
|
||||||
|
# ensure mod-path is correct!
|
||||||
|
from tractor.devx.debug import (
|
||||||
|
_sync_pause_from_builtin as _sync_pause_from_builtin,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
async def main() -> None:
|
async def main() -> None:
|
||||||
|
|
||||||
|
@ -13,6 +18,7 @@ async def main() -> None:
|
||||||
|
|
||||||
async with tractor.open_nursery(
|
async with tractor.open_nursery(
|
||||||
debug_mode=True,
|
debug_mode=True,
|
||||||
|
loglevel='devx',
|
||||||
) as an:
|
) as an:
|
||||||
assert an
|
assert an
|
||||||
assert (
|
assert (
|
||||||
|
|
|
@ -61,6 +61,7 @@ dev = [
|
||||||
# `tractor.devx` tooling
|
# `tractor.devx` tooling
|
||||||
"greenback>=1.2.1,<2",
|
"greenback>=1.2.1,<2",
|
||||||
"stackscope>=0.2.2,<0.3",
|
"stackscope>=0.2.2,<0.3",
|
||||||
|
"typing-extensions>=4.13.2", # needed for stackscope
|
||||||
"pyperclip>=1.9.0",
|
"pyperclip>=1.9.0",
|
||||||
"prompt-toolkit>=3.0.50",
|
"prompt-toolkit>=3.0.50",
|
||||||
"xonsh>=0.19.2",
|
"xonsh>=0.19.2",
|
||||||
|
|
|
@ -255,8 +255,8 @@ def enable_stack_on_sig(
|
||||||
dump_tree_on_sig,
|
dump_tree_on_sig,
|
||||||
)
|
)
|
||||||
log.devx(
|
log.devx(
|
||||||
'Enabling trace-trees on `SIGUSR1` '
|
f'Enabling trace-trees on `SIGUSR1` '
|
||||||
'since `stackscope` is installed @ \n'
|
f'since `stackscope` is installed @ \n'
|
||||||
f'{stackscope!r}\n\n'
|
f'{stackscope!r}\n\n'
|
||||||
f'With `SIGUSR1` handler\n'
|
f'With `SIGUSR1` handler\n'
|
||||||
f'|_{dump_tree_on_sig}\n'
|
f'|_{dump_tree_on_sig}\n'
|
||||||
|
|
Loading…
Reference in New Issue