---
title: "linux 下用netbeans调试sqlite3"
author: "campolake"
date: "2015-01-10T14:35:11Z"
tags: []
categories: ["编程语言"]
slug: "linux-netbeans-sqlite3"
draft: false
lastmod: "2015-01-10T17:18:04Z"
id: 2174625
url: "https://campolake.iteye.com/blog/2174625"
---

1：首先需要安装tclsh

从[http://tcl.tk/software/tcltk/download.html](http://tcl.tk/software/tcltk/download.html)下载合适的版本安装

2：安装neteans

3：从已有代码新建c项目，调试即可。

为了很好的了解sqlite的功能，我们最好就是从源码入手：

sqlite 整体结构：

![](http://sqlite.org/images/arch2.gif)

1：

open\_db()

-sqlite3\_initialize()

--sqlite3\_open()

---openDatabase()

----初始化sqlite sqlite3Malloc()