gpt4 book ai didi

c - 如何调试 SQLite 源代码?

转载 作者:行者123 更新时间:2023-11-30 15:08:06 25 4
gpt4 key购买 nike

https://github.com/mackyle/sqlite

以上是SQlite的源代码它使用tcl脚本将整个程序连接到一个文件sqlite3.c

我目前正在做的是使用提供的tcl脚本来分割巨大的sqlite3.c(参见 https://www.sqlite.org/amalgamation.html#2 中的2.0节)并编写一个 cmake 脚本以允许我在 CLion 中对其进行调试。

有更好/正确的方法吗?如果能在原来的文件结构中调试就好了。

最佳答案

您可以编译 sqlite,而无需合并到单个 sqlite3.c 中。这可以通过将 --disable-amalgamation 选项传递给 ./configure 来完成:

./configure --disable-amalgamation

关于c - 如何调试 SQLite 源代码?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37632221/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com