Skip to content

Latest commit

 

History

History
38 lines (20 loc) · 1.16 KB

README.md

File metadata and controls

38 lines (20 loc) · 1.16 KB

Overview

Pretty log for MIT6.824 distributed system.

avatar

Get Started

rf.Dprintf

This function is in the util.go file,and generates prefix like31883: [peer 1 follower at Term 58 with Log 317 230 tailterm 50 ].The usage is very simple,for example:

rf.DPrintf("[%d send AEs]",rf.me)

will result in

You can DIY it according to your own needs.

vscode Highlighter

  • Download plug-in

  • pressctrl+shift+p and enter settings,choose preference:open settings(JSON),Copy my settings.json into it.

go_test_many.sh

You can use this shell script to Parallel test your code.This video shows how to use it@1:20:30

All three files mentioned above are in the kit folder😋Enjoy your Debug journey.