From 632ca8efe7f8bbdddb93e5d47b8d5e733624dc77 Mon Sep 17 00:00:00 2001 From: public Date: Sat, 6 Dec 2025 09:09:47 +0800 Subject: [PATCH] add readme --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..400ecd0 --- /dev/null +++ b/README.md @@ -0,0 +1,19 @@ +# Rust Chrono LLDB Formatters + +## How to Use formatters/chrono.py + +### Raw lldb users +Put contents under into ~/.lldbinit file, then use lldb to debug, it will automatically format chrono times + +``` +command script import ~/.lldb/chrono.py +type summary add -F chrono.GetSummary chrono::datetime::DateTime +``` +### RustLLDB users + +In your `launch.json` file add the following line +``` +"preRunCommands": [ + "command source ~/.lldbinit" +] +```