Skip to content

step through locust source #322

@ghost

Description

Hi,

I am trying to step through the Locust source whilst running a test in order to understand the architecture. I am guessing the best way do this is to clone the source and run pdb against main.py.

$ locust python -m pdb locust/main.py

However, an exception is thrown on a directory import

from . import runners
ValueError: Attempted relative import in non-package

But there is a __init__.py there.

I wondered if I am taking the right approach and if so how can I overcome my import problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions