Pretty log for MIT6.824 distributed system.
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.
-
Download plug-in
-
press
ctrl+shift+p
and entersettings
,choosepreference:open settings(JSON)
,Copy my settings.json into it.
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.