On this page
  1. sys.gettrace
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

sys.gettrace

Prev: sys.getswitchinterval | Up: sys | Next: sys.getunicodeinternedsize
Rel: sys.activate_stack_trampoline, sys.addaudithook, sys.audit, sys.breakpointhook
Ref: docs.python.org — sys.gettrace
Tags: #public #python3 #stdlib #sys


Import

import sys
from sys import gettrace

Signature & Overview

sys.gettrace()

Return the global debug tracing function set with sys.settrace.

Usage

import sys

assert sys.gettrace() is None or callable(sys.gettrace())

Gotchas

REPL Inspect

from sys import gettrace
help(gettrace)

Linked from

Related notes