Skip to content

Commit

Permalink
updated launch_locust.json & refer to it from documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberw committed Aug 12, 2022
1 parent 5e559b9 commit e81a897
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 27 deletions.
15 changes: 10 additions & 5 deletions .vscode/launch_locust.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
{
"name": "Locust: Current File",
"version": "0.2.0",
"configurations": [
{
"name": "Locust: 5 users, with specific config file",
"type": "python",
"request": "launch",
"module": "locust",
"args": [
"-f",
"${file}",
"--headless",
// "--users=5"
"--config=${fileDirname}/../../../../locust.conf"
"--users=5",
"--config=${fileDirname}/../locust.conf"
],
"console": "integratedTerminal",
"gevent": true,
},
"gevent": true
}
]
}
24 changes: 2 additions & 22 deletions docs/running-in-debugger.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,28 +28,8 @@ Make sure you have enabled gevent in your debugger settings. In VS Code's ``laun

If you want to the whole Locust runtime (with ramp up, command line parsing etc), you can do that too:

.. code-block:: json
{
"version": "0.2.0",
"configurations": [
{
"name": "Locust: 10 Users",
"type": "python",
"request": "launch",
"module": "locust",
"args": [
"-f",
"${file}",
"--headless",
"-u",
"10"
],
"console": "integratedTerminal",
"gevent": true
}
]
}
.. literalinclude:: ../.vscode/launch_locust.json
:language: json

There is a similar setting in `PyCharm <https://www.jetbrains.com/help/pycharm/debugger-python.html>`_.

Expand Down

0 comments on commit e81a897

Please sign in to comment.