IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).

Python class

ForkedPdb

ForkedPdb​

class max.support.ForkedPdb(completekey='tab', stdin=None, stdout=None, skip=None, nosigint=False, readrc=True)

source

Bases: Pdb

A Pdb subclass that may be used from a forked multiprocessing child.

This is particularly useful for adding breakpoints to the model worker MAX Serve sub-process. See: SERVSYS-941

This is based on the implementation in:

Usage: python from max.support import ForkedPdb ForkedPdb().set_trace() # use in same way as `breakpoint()`

Instantiate a line-oriented interpreter framework.

The optional argument ‘completekey’ is the readline name of a completion key; it defaults to the Tab key. If completekey is not None and the readline module is available, command completion is done automatically. The optional arguments stdin and stdout specify alternate input and output file objects; if not specified, sys.stdin and sys.stdout are used.

interaction()​

interaction(*args, **kwargs)

source

Parameters:

Return type:

None