Code::Blocks Forums

User forums => Help => Topic started by: ioann on August 11, 2011, 08:27:26 PM

Title: CodeBlock skips my code on debug
Post by: ioann on August 11, 2011, 08:27:26 PM
Use: Ubuntu, CodeBlocks, wxWidgeth, SQLite
Default project on wxWidgeth (About, Quit). Code (event on key press):
void lllDialog::OnAbout(wxCommandEvent &event)
{
  wxMessageBox(wxT("STEP 1")); // STEP 1
   sqlite3 *db ;
   char *errmsg;

   sqlite3_open("./db", &db) ;
   sqlite3_exec(db, "select * from test;", callback, NULL, &errmsg);
   
   wxMessageBox(wxT("STEP 2")); // STEP 2
}

(trying configure work with SQLite)
work out on STEP1 and 2. Everything steps no debuging on steps mode.
Any idea?
Title: Re: CodeBlock skips my code on debug
Post by: ioann on August 11, 2011, 08:39:36 PM
void lllDialog::OnAbout(wxCommandEvent &event)
{
   wxMessageBox(wxT("STEP 1")); // STEP 1
    sqlite3 *db ;
    char *errmsg;

    sqlite3_open("./db", &db) ;
    sqlite3_exec(db, "select * from test;", callback, NULL, &errmsg);
    int x= 1+2; // STEP 2
    wxMessageBox(wxT("STEP 2")); // STEP 3
}
Title: Re: CodeBlock skips my code on debug
Post by: oBFusCATed on August 11, 2011, 08:50:36 PM
Have you read this: http://wiki.codeblocks.org/index.php?title=Debugging_with_Code::Blocks
Title: Re: CodeBlock skips my code on debug
Post by: ioann on August 11, 2011, 10:01:02 PM
Quote from: oBFusCATed on August 11, 2011, 08:50:36 PM
Have you read this: http://wiki.codeblocks.org/index.php?title=Debugging_with_Code::Blocks
Than you, but this NO Work. I apply new paramerts, restart C::B, restart PC... anything. all the same no work.

may be helpful: if i run project in first time runned project handed, where i no stoped and no start he again.
Title: Re: CodeBlock skips my code on debug
Post by: ioann on August 11, 2011, 10:06:07 PM
now a create new project - all the same no work.
but hanging stopped.
Title: Re: CodeBlock skips my code on debug
Post by: ioann on August 12, 2011, 10:02:14 PM
resolved. any errors due to poor knowledge of C + +. I spoiled the code define.
Then You all, People