<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/137172>137172</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            lldb should have a to show valid enum values for a setting
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            enhancement,
            lldb
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          DavidSpickett
      </td>
    </tr>
</table>

<pre>
    Inspired by a question on Discord about how to discover the values for the follow fork mode. `settings list` doesn't show them:
```
(lldb) settings list target.process.follow-fork-mode
  target.process.follow-fork-mode -- Debugger's behavior upon fork or vfork.
```
Which I understand to be the equivalent of `help` but for settings.
```
(lldb) help settings list
List and describe matching debugger settings.  Defaults to all listing all settings.

Syntax: settings list [<setting-variable-name | setting-prefix>]
```
(though I first looked for a `help` sub-command)

The only way to see them is to give it a bogus value:
```
(lldb) settings set target.process.follow-fork-mode food
error: invalid enumeration value 'food', valid values are: child, parent
```
Which is not very intuitive.

I think we could add them to the description, which might also make them show up in `apropos` which would be cool.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyMVE2vqzYQ_TXOZkREHALJgkV600hX6u5V6nrAA7gxHp4_yMu_rwy5uh-tdCtFCpjxOXPOHBu9170lqsXhN3G4bDCGgV19wVmrH5NubxTCpmH1qF-tn7QjBc0DEH5G8kGzBbZw0b5lpwAbjgEGvkNgUGlxJgdhIJjRRPLQ8frasTF8T683GFnRFkSZewpB296D0T6IMgfF5K2QVQC_YA40iv1Z5GdR5s9ffhbyaIxqhDzBJwAI6HoK28lxS95vV8osUWaJUuRn-K4Gsgwu1MS-Jydk5aGhAWfNDuLEdm2fHczpYfulr78G3Q7wCtEqcj6gVcmUhhb99DPqGQ3ZANwl7QOZKUluYlhMepPyFfWD2rTls2SRn_9IyhOXIt863RCMGNpB2x7UU8g7NsCFOowm-NQaGrOgpNr0_KmF_PzjYQP-EvvzF5tTbPYvz7VsRqexMZRZHAlE9fJWnU2OOv1L7H8Xh8u_RYWBY5_s6rTzAQzzjdTiBH60x8cma3kc0SohT2tjfw4EbM0D7vhIOjwtHo-gF1m9ngl0AISG--jXJP6_GHn6NkXQMSuRn8k5dskcbWc0WgHZOJLD5YQslCBktRTLSsgXWKuexwJd6gjaQRuVPk7oyIb_DJT2YDnATO4B2oaog57pOaJXCIO2N7gTtByNAlRqtSLwErs1FFNqKtHcF8RR90MANJ5hxNvTu-XAxQm0Tfbj5Hhinyaw7rkv8E3iYbPdqHqvTvsTbqjeVcWhOB2rstgMNREey9Ouk6pRmJeHHVbH8lAVueyOpSqKja5lLg95IYudLMq82O4P3b4r1a7Mdw3KoxRFTiNqszVmHrfs-o32PlK921e7Sm4MNmT8cnVJSXZA29KYrJNSyBch5TpTmS42VyeMrIm9F0WesuvfUYMOhupUnaQncQPOBLgEKnnxPtWPdxm-hWUTnamHECafoiWvQl57HYbYbFsehbwmoudfNjn-m9og5HXR4oW8PuXMtfwnAAD__2ax2RU">