class_docstr: Pseudo PDB that defers to the real pdb. 
class_docstr_tok: ["Pseudo","PDB","that","defers","to","the","real","pdb","."]
docstr: Initialize PDB debugging, dropping any IO capturing. 
docstr_tok: ["Initialize","PDB","debugging",",","dropping","any","IO","capturing","."]
code: def _init_pdb(cls, method, *args, **kwargs):
      """Initialize PDB debugging, dropping any IO capturing."""
      import _pytest.config
  
      if cls._pluginmanager is not None:
          capman = cls._pluginmanager.getplugin("capturemanager")
      else:
          capman = None
      if capman:
          capman.suspend(in_=True)
  
      if cls._config:
          tw = _pytest.config.create_terminal_writer(cls._config)
          tw.line()
  
          if cls._recursive_debug == 0:
              # Handle header similar to pdb.set_trace in py37+.
              header = kwargs.pop("header", None)
              if header is not None:
                  tw.sep(">", header)
              else:
                  capturing = cls._is_capturing(capman)
                  if capturing == "global":
                      tw.sep(
                          ">",
                          "PDB %s (IO-capturing turned off)"
                          % (method,),
                      )
                  elif capturing:
                      tw.sep(
                          ">",
                          "PDB %s (IO-capturing turned off for %s)"
                          % (method, capturing),
                      )
                  else:
                      tw.sep(">", "PDB %s" % (method,))
  
      _pdb = cls._import_pdb_cls(capman)(**kwargs)
  
      if cls._pluginmanager:
          cls._pluginmanager.hook.pytest_enter_pdb(
              config=cls._config, pdb=_pdb
          )
      return _pdb
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  import argparse
  import pdb
  import sys
  from doctest import UnexpectedException
  from _pytest import outcomes
  from _pytest.config import hookimpl
  from _pytest.config.exceptions import UsageError
label_desc: Use image node_id 4 for calling the pytestPDB obj's underlying member method code with example usage: obj._init_pdb(cls, method) and returns: _pdb