-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
title: "LUG 小聚:Debug 原理与演示" | ||
author: "aka-dag" | ||
date: "2023-12-09 19:00:00 +0800" | ||
categories: | ||
- LUG 活动 | ||
- LUG 小聚 | ||
tags: [] | ||
--- | ||
|
||
2023 年 12 月 9 日,校学生 Linux 用户协会举办了一场小聚活动。本次小聚是由 Linux 用户协会的廖巍同学为我们带来的关于 debug 的原理与演示。 | ||
|
||
![](https://ftp.lug.ustc.edu.cn/weekly_party/2023.12.09_Debug/photo/photo_2023-12-09_15-36-35.jpg) | ||
|
||
廖同学首先从 debug 的基本概念入手,向大家解释了它在软件开发中的关键作用。通过生动的例子和清晰的讲解,她让大家更加理解了程序中 bug 的危害、 debug 的重要性以及在编程过程中如何有效运用它来解决问题。 | ||
|
||
![](https://ftp.lug.ustc.edu.cn/weekly_party/2023.12.09_Debug/photo/ppt-01.png) | ||
|
||
![](https://ftp.lug.ustc.edu.cn/weekly_party/2023.12.09_Debug/photo/ppt-02.png) | ||
|
||
接下来,廖同学详述了五个流程来高效地进行 debug:从复现问题出发,到收集与 bug 相关的线索、最终的问题定位,再到尝试修复这一类的 bug 而并非针对性地解决单个问题,最终对代码进行全面的测试以防引入新的 bug。 | ||
|
||
![](http://ftp.lug.ustc.edu.cn/weekly_party/2023.12.09_Debug/photo/ppt-03.png) | ||
|
||
随后,廖同学展示了一系列实际案例,演示了常见的 bug 出现场景以及如何通过 debug 工具(如 gdb 等)逐步定位和修复问题。她的演示不仅涉及了常见的语法错误,还包括了一些更复杂的逻辑错误和运行时错误,让观众从不同层面深入了解 debug 的应用。 | ||
|
||
![](http://ftp.lug.ustc.edu.cn/weekly_party/2023.12.09_Debug/photo/ppt-04.png) | ||
|
||
活动现场,同学们积极提问,与廖同学进行深入交流,使整个演示更加生动有趣。廖同学不仅耐心回答了问题,还分享了一些自己在实际项目中遇到的挑战和解决方案,为大家提供了宝贵的经验。 | ||
|
||
最后,到场的同学们纷纷表示受益匪浅,对于 debug 有了更深层次的理解。活动的成功举办不仅展现了同学们的学习热情,也为大家提供了一个共同成长的平台。期待未来社团活动中能有更多类似的精彩分享,共同探讨技术前沿。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters