Reddit Programming
201 subscribers
1.22K photos
126K links
I will send you newest post from subreddit /r/programming
Download Telegram
A practical step-by-step guide to debugging a real C bug with GDB
https://www.reddit.com/r/programming/comments/1rvfzrj/a_practical_stepbystep_guide_to_debugging_a_real/

<!-- SC_OFF -->A practical guide on using GDB to debug a real C bug step by step. The article focuses on an actual debugging workflow rather than just listing commands, so it should be helpful for beginners and for anyone who wants to get more comfortable debugging C or C++ programs in a real scenario. It covers things like: * setting breakpoints * stepping through code * inspecting variables * understanding where things go wrong Do checkout the article. Feedbacks are very much appreciated. <!-- SC_ON --> submitted by /u/abhijith1203 (https://www.reddit.com/user/abhijith1203)
[link] (https://levelup.gitconnected.com/how-to-use-gdb-to-debug-a-real-c-bug-step-by-step-86a9cde406a1) [comments] (https://www.reddit.com/r/programming/comments/1rvfzrj/a_practical_stepbystep_guide_to_debugging_a_real/)
Integrated Gauges: Lessons Learned Monitoring Seastar's IO Stack
https://www.reddit.com/r/programming/comments/1rwak05/integrated_gauges_lessons_learned_monitoring/

<!-- SC_OFF -->Many performance metrics and system parameters are inherently volatile or fluctuate rapidly. When using a monitoring system that periodically “scrapes” (polls) a target for its current metric value, the collected data point is merely a snapshot of the system’s state at that precise moment. It doesn’t reveal much about what’s actually happening in that area. Sometimes it’s possible to overcome this problem by accumulating those values somehow – for example, by using histograms or exporting a derived monotonically increasing counter. This article suggests yet another way to extend this approach for a broader set of frequently changing parameters. <!-- SC_ON --> submitted by /u/swdevtest (https://www.reddit.com/user/swdevtest)
[link] (https://www.scylladb.com/2026/03/17/integrated-gauges-lessons-learned-monitoring-seastars-io-stack/) [comments] (https://www.reddit.com/r/programming/comments/1rwak05/integrated_gauges_lessons_learned_monitoring/)
Testing Super Mario Using a Behavior Model Autonomously – Finding Real Bugs
https://www.reddit.com/r/programming/comments/1rwd2tr/testing_super_mario_using_a_behavior_model/

<!-- SC_OFF -->Learn how a behavior model combined with autonomous testing helped us find interesting bugs in our reference Super Mario game implementation. The model validates every frame during exploration, but when it disagrees with the game, which one is wrong? This is bidirectional testing: the model tests the game, and the game tests the model. The process uncovered several real engine bugs, including a teleport bug in Level 4 where Mario gets snapped across the screen due to overlapping collision boxes. All code is open source: https://github.com/testflows/Examples/tree/v3.0/SuperMario. <!-- SC_ON --> submitted by /u/vzakaznikov (https://www.reddit.com/user/vzakaznikov)
[link] (https://testflows.com/blog/testing-super-mario-using-a-behavior-model-autonomously-part2/) [comments] (https://www.reddit.com/r/programming/comments/1rwd2tr/testing_super_mario_using_a_behavior_model/)