> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/xsoar-6-administrator-guide/6.13/learn-about-cortex-xsoar/customize-and-configure-cortex-xsoar/playbooks/playbook-testing/debugger-troubleshooting.md).

# Debugger Troubleshooting

**User Permissions**

The debugger runs with the permissions of the logged in user. The user must have permissions for both **`PlaybooksRW`** and **`InvestigationRW`** to run the debugger.

**Debugger Worker Pool**

The playbook debugger has a separate worker pool. If you have many users running debugger sessions at the same time, and there are performance issues, you can increase the number of workers. To change the number of workers, go to Settings → About → Troubleshooting → **Server Configuration** and add the server configuration **`workers.count.Debug`**. The default number of workers is 1.

**Terminate Debugger Sessions**

By default, every 24 hours, the system closes any debugger sessions that have been open for more than 180 minutes. You can change the frequency of the automatic terminations and also the length of time a debugger session can remain open. To change the default from 24 hours, go to Settings → About → Troubleshooting → **Server Configuration** and add the server configuration **`clean.playbook.debug.sessions.interval`**. The unit is hours.. To change the maximum time a debugger session can remain open, add the server configuration **`playbook.debug.sessions.duration.max`**. The unit is minutes.

The default admin can close either all debugger sessions or a specific user’s debugger sessions through the API.

* To close all debugger sessions, send a POST request to the endpoint **`/debugsession/remove`**.
* To close only the debugger sessions for a specific user, include the following request parameter in the body of the request **`{"username": "`*****`CHOSEN_USERNAME`*****`"}`**. Note that if no user is specified in the request, all open debugger sessions for all users will be terminated.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://cortex-docs.paloaltonetworks.com/xsoar-6-administrator-guide/6.13/learn-about-cortex-xsoar/customize-and-configure-cortex-xsoar/playbooks/playbook-testing/debugger-troubleshooting.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
