Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: szurilo on March 03, 2008, 01:52:41 pm

Title: Debug bug?
Post by: szurilo on March 03, 2008, 01:52:41 pm
Actually i installed the new 8.02 C::B to my Debian distro. wxWidgets 2.8.7
I set 2 breakpoints to the first and the least row of this codesegment:
for (unsigned int j=0;j<max_ch_num;j++)
    {
        Chn[j] = new wxGauge(this, wxID_ANY, 20, wxDefaultPosition, wxSize(-1,20), wxGA_VERTICAL, wxDefaultValidator);
        Chn_Inside_BoxSizer[j]->Add(Chn[j], 0, wxLEFT|wxRIGHT|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 0);
        wxString __wxCheckListBoxChoices[2] =
        {
            _("Scan"),
            _("Monitor")
        };
        wxString Chn_buf;
        Chn_buf.Printf(_("Chn %d"),j+1);

I tried to debug my program and i experienced many strange behaviour.
Usually the step by step debugging not works. The small yellow triangle disappear at the 2nd sometimes 3th, 4th line and nothing happens i can simply stop debugging process, bec. every other button turned gray.
But if i try to Continue the Debug from the first line the debugger stops at the 2nd breakpoint.
If i set one breakpoint to the following line, the watch menu becomes empty during debugging and again every debugging button turned gray:
Chn_Inside_BoxSizer[j]->Add(Chn[j], 0, wxLEFT|wxRIGHT|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 0);

Whats this? I usually don't have problem with debugging.

Szurilo