Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7852301
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T19:23:19+00:00 2026-06-02T19:23:19+00:00

I’m compiling sqlite3 using Visual Studio 2008. When I try to single-step into any

  • 0

I’m compiling sqlite3 using Visual Studio 2008. When I try to single-step into any sqlite3 function (e.g. sqlite3_open), Visual Studio displays the wrong line of source code. And it looks really wrong. The sqlite3_open function seems to be declared on line 114,788; and when I single-step in, it brings me to line 49,254.

I’ve tried rebuilding everything. I think I’m compiling everything the same way (i.e. same runtime-library, debug information format, etc).

What am I doing wrong?

Edit: To compile sqlite3 for Windows, I created a new “Win32 Project” naming it “sqlite3”, selecting for it to be a static library, and an empty project. I added “sqlite3.c” to the “Source Files” folder under the new “sqlite3” project, and the “sqlite3.h” file to the “Header files” folder. Hitting compile at this step yielded the sqlite3.lib.

Here’s the command line passed into cl:

/Od /D "WIN32" /D "_DEBUG" /D "_LIB" /D "_MBCS" /Gm /EHsc /RTC1 /MTd /Fo"Debug\\" /Fd"Debug\vc90.pdb" /W3 /nologo /c /ZI /TP /errorReport:prompt

I have a separate .exe project in the same solution that I created as a “Win32 Project” selecting for it to be an “empty project” and a “console application”. This project includes the sqlite3.h header, and as “Additional Dependencies” I include the sqlite3.lib.
My code looks like the following:

sqlite3 *pDb;
sqlite3_open("C:\\some.db", &pDb);

Stepping into this function brings me to the wrong source line in sqlite3.c.

Edit2: Here’s the link to the sqlite3 source that I downloaded: http://www.sqlite.org/sqlite-amalgamation-3071100.zip

And here’s the documentation for how to build it this way (that is, just compile the sqlite3.c in your project): http://www.sqlite.org/amalgamation.html

Edit3: For what it’s worth, the call-stack in my debugging window appears to follow the correct code. And using the API correctly leads to correct results. It appears the compilation works, the source code line is just wrong.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T19:23:21+00:00Added an answer on June 2, 2026 at 7:23 pm

    the vs2008, vs2010, etc. debuggers can’t step in more than 65536 lines.

    Solution1 : put any function you want to step in, in the 1st 65536 lines, by moving this part in the huge file. Move one chapter a time, I did it to debug gettable and worked (minor bug with *pnColumn)

    Solution2 : don’t use vs2kXX anymore, return to vi, emacs, etc.. (Ha..ha..)

    Solution3 : cut this huge file in smallest ones, following the indications “Include pcache.h in the middle of sqliteInt.h” etc. etc. But then you’ll have to manage about 150,000 lines !.. with surprises as a missing “tcl.h” for example, etc. etc. A nice piece of work, but the community will raise a statue of you !..

    Believe me, the best solution is the #1.

    Thanks to guy or the team who gave us SQLite amalgamation !

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
That's pretty much it. I'm using Nokogiri to scrape a web page what has
this is what i have right now Drawing an RSS feed into the php,
I am reading a book about Javascript and jQuery and using one of the
I have a French site that I want to parse, but am running into
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
We are using XSLT to translate a RIXML file to XML. Our RIXML contains

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.