# debugger: Configure default pane layout conditionally based on capabilities \(\#28991\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/8660101b83368ec27ffa1ccc2b4034c3397734c1)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 8660101b83368ec27ffa1ccc2b4034c3397734c1

Requested commit: 8660101b83368ec27ffa1ccc2b4034c3397734c1

Commit: 8660101b83368ec27ffa1ccc2b4034c3397734c1

Tree: 36a2ba43fc2e4c5d7de6e27f911e3d779124cfb4

Author: Anthony Eid

Committer: GitHub

## Message

```
debugger: Configure default pane layout conditionally based on capabilities (#28991)

This fixes a debug panic that happened when closing a debug session item
through the debug panel context menu. The default layout now only
includes module list and loaded sources list if they're supported.


Release Notes:

- N/A
```

## Parents

- [1aa1b2bedea86524de2e45136c5caa1e8d84d538](https://git.cafe/gitcafe/zed/commit/1aa1b2bedea86524de2e45136c5caa1e8d84d538?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/8660101b83368ec27ffa1ccc2b4034c3397734c1?format=markdown)
