# Sample rdb file for local debugging

**URL:** <https://forum.codecrafters.io/t/sample-rdb-file-for-local-debugging/8140>\
**Category:** Challenges\
**Tags:** challenge:redis\
**Created:** [April 3, 2025, 12:18pm UTC](https://forum.codecrafters.io/t/sample-rdb-file-for-local-debugging/8140 "2025-04-03T12:18:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ravividap](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/ravividap/32/8412_2.png) [@ravividap](https://forum.codecrafters.io/u/ravividap)\
**Post date:** [April 3, 2025, 12:18pm UTC](https://forum.codecrafters.io/t/sample-rdb-file-for-local-debugging/8140/1 "2025-04-03T12:18:49Z")

</div>

I’m stuck on Stage #dq3. I am trying to debug, but no luck so far because I am unable to create rdb file that the platform uses. Maybe I am missing something.

I have taken the RDB file from my local Redis folder. And added that to my solution to read, but I think the format might be different.  
If someone can guide me in getting/creating a sample rdb file, that would be great.

Steps I took to generate rdb file:  
SET name “alice”  
SET age 30  
SAVE

This is how it looks when I open in notepad  
REDIS0006þ namealice ageÀÿ¤n\_GG3B

---

<div class="post-metadata">

**Author:** ![andy1li](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/andy1li/32/10_2.png) [@andy1li](https://forum.codecrafters.io/u/andy1li)\
**Post date:** [April 3, 2025, 7:51pm UTC](https://forum.codecrafters.io/t/sample-rdb-file-for-local-debugging/8140/4 "2025-04-03T19:51:22Z")

</div>

Hey @ravividap, the RDB file you saved looks valid. To inspect it properly, you can open it with a **hex editor**.

Opening it in a regular text editor like Notepad will just show unreadable characters.

---

<div class="post-metadata">

**Author:** ![Adweeb252](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/adweeb252/32/8402_2.png) [@Adweeb252](https://forum.codecrafters.io/u/Adweeb252)\
**Post date:** [April 8, 2025, 7:50am UTC](https://forum.codecrafters.io/t/sample-rdb-file-for-local-debugging/8140/6 "2025-04-08T07:50:16Z")

</div>

You can use terminal to view this rdb file with this command  
hexdump -C dump.rdb  
Note:- you should be in your redis folder directory to view the correct rdb file or else it will create a temporary rdb file with no previous saved data, and for getting the directory of rdb file you can use config get dir

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/3X/7/0/700657133935c15703e22c7c8870394f6e6dc27d.svg) [@system](https://forum.codecrafters.io/u/system)\
**Post date:** [April 13, 2025, 7:50am UTC](https://forum.codecrafters.io/t/sample-rdb-file-for-local-debugging/8140/7 "2025-04-13T07:50:46Z")

</div>

Closed on April 13, 2025, 7:50am UTC

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.
