Landsiedel, OlafOlafLandsiedelSchiller Elad MichaelTomaselli, SalvatoreSalvatoreTomaselli2025-02-072025-02-072015-02Lecture Notes in Computer Science 8965 258-265978-3-319-15582-1978-3-319-15581-4https://hdl.handle.net/11420/53915Bug hunting in sensor networks is challenging: Bugs are often prompted by a particular, complex concatenation of events. Moreover, dynamic interactions between nodes and with the environment make it time-consuming to track and reproduce a bug. We introduce LibReplay to ease bug hunting in sensor networks: it provides (1) lightweight and flexible logging and (2) deterministic replay. LibReplay logs function calls to and from the application or another code of interest. It enables deterministic replay of execution traces in a controlled environment such as a full-system simulator. This allows the user to benefit from wellestablished debugging tools such as stepping through code, breakpoints, or watchpoints. We show that the lightweight architecture of LibReplay provides the benefits of replay debugging at an efficiency that is comparable to traditional logging tools, which commonly do not allow replay debugging.enCyber Physical Systems | Debugging | Internet of Things | Logging | Replay | Simulation | Tracing | Wireless Sensor NetworksTechnology::600: TechnologyLibreplay: deterministic replay for bug hunting in sensor networksConference Paper10.1007/978-3-319-15582-1_18Conference Paper