add readme

This commit is contained in:
2025-12-06 09:09:47 +08:00
parent 6a636f747d
commit 632ca8efe7

19
README.md Normal file
View File

@@ -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<chrono::offset::utc::Utc>
```
### RustLLDB users
In your `launch.json` file add the following line
```
"preRunCommands": [
"command source ~/.lldbinit"
]
```