《CPython Internals》阅读笔记:p336-p352

《CPython Internals》学习第 17天,p336-p352 总结,总计 17 页。

一、技术总结

1.GDB

GDB 是 GNU Dbugger 的缩写。

(1)安装

复制代码
sudo apt install gdb

(2)创建 .gdbinit 文件

复制代码
touch ~/.gdbinit

vim ~/.gdbinit

(3)配置 .gdbinit 文件

复制代码
add-auto-load-safe-path /project/cpython

注:1./project/cpython 为 cpython 所在的目录。

(4)设置断点

使用 b : 命令,示例:

复制代码
(gdb) b Objects/floatobject.c:532

GDB的使用可以参考书籍《Debugging with GDB》或者在线手册。

二、英语总结(生词:2)

无。

关于英语的注解同步更新汇总到 https://github.com/codists/English-In-CS-Books 仓库。

三、其它

Debugging章节简评:介绍debugging,总体而言介绍比较简单。

四、参考资料

1. 编程

(1) Anthony Shaw,《CPython Internals》:https://book.douban.com/subject/35405785/

2. 英语

(1) Etymology Dictionary:https://www.etymonline.com

(2) Cambridge Dictionary:https://dictionary.cambridge.org

欢迎搜索及关注:编程人(a_codists)

相关推荐
Warson_L5 小时前
Python `Annotated` 与 LangGraph Reducer 学习笔记
python
韩师傅5 小时前
海天线算法的前世今生
python·计算机视觉
韩师傅5 小时前
当你的甲方设备过烂,要如何快速出效果?
python·计算机视觉
Warson_L6 小时前
LangGraph的MessageState and HumanMessage
python
韩师傅6 小时前
当你的甲方吐槽天空不够蓝,你应该如何应对
python·计算机视觉
Warson_L7 小时前
python的类&继承
python
Warson_L7 小时前
类型标注/type annotation
python
ThreeS9 小时前
手搓MiniVLA全实战教程-一步一步用pytorch解释原理与思路
人工智能·python
金銀銅鐵10 小时前
[Python] 模 n 乘法的逆元计算器
python·数学·游戏