Skip to content

debugging plugin not active early enough #5189

Closed
@blueyed

Description

@blueyed

It is not active during pytest_load_initial_conftests already for example, requiring you to use -s when debugging pytest plugins.

I think it should be more tighly coupled to the output capturing itself, i.e. suspending of output capturing should be available as early as output capturing is being used.

It makes it a bit more difficult since currently a parsed config is expected there, but it could default to e.g. not use --pdbcls then.

self.hook.pytest_load_initial_conftests(
early_config=self, args=args, parser=self._parser
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    plugin: capturerelated to the capture builtin pluginplugin: debuggingrelated to the debugging builtin plugin

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions