Author Topic: CodeBlock skips my code on debug  (Read 5010 times)

Offline ioann

  • Multiple posting newcomer
  • *
  • Posts: 12
  • Sorry for my poor English
CodeBlock skips my code on debug
« on: August 11, 2011, 08:27:26 pm »
Use: Ubuntu, CodeBlocks, wxWidgeth, SQLite
Default project on wxWidgeth (About, Quit). Code (event on key press):
Code
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?
« Last Edit: August 11, 2011, 08:31:14 pm by ioann »
Sorry for my poor English

Offline ioann

  • Multiple posting newcomer
  • *
  • Posts: 12
  • Sorry for my poor English
Re: CodeBlock skips my code on debug
« Reply #1 on: August 11, 2011, 08:39:36 pm »
Code
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
}
Sorry for my poor English

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: CodeBlock skips my code on debug
« Reply #2 on: August 11, 2011, 08:50:36 pm »
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline ioann

  • Multiple posting newcomer
  • *
  • Posts: 12
  • Sorry for my poor English
Re: CodeBlock skips my code on debug
« Reply #3 on: August 11, 2011, 10:01:02 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.
Sorry for my poor English

Offline ioann

  • Multiple posting newcomer
  • *
  • Posts: 12
  • Sorry for my poor English
Re: CodeBlock skips my code on debug
« Reply #4 on: August 11, 2011, 10:06:07 pm »
now a create new project - all the same no work.
but hanging stopped.
Sorry for my poor English

Offline ioann

  • Multiple posting newcomer
  • *
  • Posts: 12
  • Sorry for my poor English
Re: CodeBlock skips my code on debug
« Reply #5 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
Sorry for my poor English