Skip to content

SWE-agent takes a GitHub issue and tries to automatically fix it, using your LM of choice. It can also be employed for offensive cybersecurity or competitive coding challenges. [NeurIPS 2024]

Doc: Note about debug output with pytest (#1146)

Kilian Lieret12d080bd8fb4
diff --git a/docs/dev/contribute.md b/docs/dev/contribute.md
index 764e4e8f..6adfb9b3 100644
--- a/docs/dev/contribute.md
+++ b/docs/dev/contribute.md
@@ -96,6 +96,15 @@ pdb -m sweagent <command> -- <more command line arguments> # (1)!
1. Note the `--` before the options passed to sweagent. This is to separate
options passed to `pdb` from those that are passed to `sweagent`.
+
+When working on a test that fails, you can use
+
+```
+pytest -k name_of_test -s --capture=no --log-cli-level=DEBUG
+```
+
+to see all debug output from the agent.
+
## Tips for pull requests
* If you see a lot of formatting-related merge conflicts, please see [here](formatting_conflicts.md).