# SwiftData debugging tool

**URL:** <https://forums.swift.org/t/swiftdata-debugging-tool/79504>\
**Category:** Community Showcase\
**Tags:** tools, swiftdata\
**Created:** [April 25, 2025, 9:47am UTC](https://forums.swift.org/t/swiftdata-debugging-tool/79504 "2025-04-25T09:47:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![alex566](https://avatars.discourse-cdn.com/v4/letter/a/54ee81/32.png) [@alex566](https://forums.swift.org/u/alex566)\
**Post date:** [April 25, 2025, 9:47am UTC](https://forums.swift.org/t/swiftdata-debugging-tool/79504/1 "2025-04-25T09:47:56Z")

</div>

Hello everyone!

I’m working on a [tool](https://apps.apple.com/us/app/datascout-for-swiftdata/id6737813684) that is dedicated to debugging SwiftData databases. It’s based on Core Data, but trying to mimic the style and match the information with SwiftData as much as possible.

 ![Screenshot](https://global.discourse-cdn.com/swift/original/3X/7/7/77d7d2169617b03d5b089534953bb253b28eec95.jpeg)

Even filtering mimics the #predicate syntax as much as possible. Currently, not all types are supported yet, but those that are supported behave as closely as possible to the real Predicate. It’s actually re-creating a real Predicate from the input string and then initializing NSPredicate from it. Also, SourceKitten is used for syntax highlighting and autocomplete.

Each feature is described in more detail [here](https://medium.com/@djalex566/behind-the-scenes-of-datascout-a-swiftdata-debugging-tool-dcfc880f0733) with information on how it is implemented.  
I would be glad to hear your feedback or recommendations on improving it.

Thanks,  
Oleksii

---

<div class="post-metadata">

**Author:** ![alex566](https://avatars.discourse-cdn.com/v4/letter/a/54ee81/32.png) [@alex566](https://forums.swift.org/u/alex566)\
**Post date:** [April 27, 2025, 2:56pm UTC](https://forums.swift.org/t/swiftdata-debugging-tool/79504/2 "2025-04-27T14:56:28Z")

</div>

I have also just added the ability to preview the content of cells with Plist data.

 ![Screenshot 2025-04-27 at 16.50.40](https://global.discourse-cdn.com/swift/original/3X/8/f/8ff7257d5b708e50926bdaa2fdf4550247ffadc5.jpeg)

---

<div class="post-metadata">

**Author:** ![alex566](https://avatars.discourse-cdn.com/v4/letter/a/54ee81/32.png) [@alex566](https://forums.swift.org/u/alex566)\
**Post date:** [May 4, 2025, 9:26pm UTC](https://forums.swift.org/t/swiftdata-debugging-tool/79504/3 "2025-05-04T21:26:13Z")

</div>

And new update: added the ability to preview models with a plan to show the connection of relations in future updates

 ![Screenshot 2025-05-04 at 20.28.43](https://global.discourse-cdn.com/swift/original/3X/9/4/9445bd5654817e45086575cd8e5c4497141261b2.jpeg)

---

<div class="post-metadata">

**Author:** ![alex566](https://avatars.discourse-cdn.com/v4/letter/a/54ee81/32.png) [@alex566](https://forums.swift.org/u/alex566)\
**Post date:** [May 10, 2025, 12:14pm UTC](https://forums.swift.org/t/swiftdata-debugging-tool/79504/4 "2025-05-10T12:14:18Z")

</div>

I have created a new Swift [package](https://github.com/alex566/DataScoutCompanion), which is the same app code base recompiled for iOS and wrapped conveniently for easy integration into your app

 ![screenshot](https://global.discourse-cdn.com/swift/original/3X/0/1/0159a09efc8f1346d31789205aece26344fb40c6.jpeg)

---

<div class="post-metadata">

**Author:** ![alex566](https://avatars.discourse-cdn.com/v4/letter/a/54ee81/32.png) [@alex566](https://forums.swift.org/u/alex566)\
**Post date:** [June 5, 2025, 9:39am UTC](https://forums.swift.org/t/swiftdata-debugging-tool/79504/5 "2025-06-05T09:39:30Z")

</div>

I have finally added a feature to debug your database via the network right from the iphone

 ![Screenshot 2025-06-05 at 11.38.32](https://global.discourse-cdn.com/swift/original/3X/8/1/8137279ccf384aff1d059e8c2b4007b844798c85.jpeg)
