[Lldb-commits] [Proposal] A new system for helping people learn LLDB commands

Enrico Granata egranata at apple.com
Tue Apr 1 09:51:00 PDT 2014



Hi all,
this patch is a first chunk of work on the NS4-HLP-LLC (New System for Helping People Learn LLDB Commands)

It introduces a Karma class in the CommandInterpreter, whose purpose is to track positive and negative command-based interactions with the debugger
Currently, each session starts with +5 karma points, and:
- using the help command adds 1 karma point
- using the apropos command adds 1 karma point
- having a command fail to run correctly takes away 1 karma point

When your karma level goes below 0, you cannot run commands anymore.
However, you can still use the help command to learn commands AND restore karma points.

Currently, you can only use the no-arguments version of “help” when you have no karma (essentially, just get a list of debugger commands), but this will be improved upon in a follow-up patch.

Also in a follow-up patch, more activities will have karma effects:
- using the `expr` syntax will gain karma
- so will creating a data formatter
- memory read from address 0 will lose karma - even if the command succeeds

…and we are definitely open to suggestions as to what activities you think should earn or lose karma for the user!

I am sure by now you realized this is going towards LLDB having an achievements system! Stay tuned!

- Sent from Enrico's desk on April 1st 2014
📩 egranata@.com ☎️ 27683

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20140401/e1cf9485/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: karma.diff
Type: application/octet-stream
Size: 3197 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20140401/e1cf9485/attachment.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20140401/e1cf9485/attachment-0001.html>


More information about the lldb-commits mailing list