User forums > Using Code::Blocks

Debug watches problem (Incomplete type)

(1/3) > >>

Multinode Nick:
Hi,

I tried C::B for a week now, I left Microsoft for good without any regret. So I installed the latest C::B last week with wxWidgets 2.6.3. (gbd.exe is V6.3)

At this point I'm testing all the functionnalities and I try to undestand how every single object works, but I have a issue here about the debug Watches. I'm unable to see the state of some variables (but not all) of my wxWidget objects. My code works well, my bitmap rotate (180deg) as expected, I just want to explore inside the beast...

I'm debugging these lines:

void NewDialog::OnButton1Click(wxCommandEvent& event)
{
   wxBitmap TempBMP = StaticBitmap1->GetBitmap() ;

   wxImage TempImage = TempBMP.ConvertToImage();
   wxImage TempBMP2;

   wxPoint Pt(160,100), PtOffset(0,0);

   for(double i=0.0; i<3.14159265; i+=0.1){
      TempBMP2 = TempImage.Rotate(i,Pt, false,&PtOffset);
      StaticBitmap1->SetBitmap(TempBMP2);   
   }
   Update();
}


I have a breakpoint beside Update(); to be sure everybody is well initiated. But the Watches window shows me this:

i=0
TempBMP= <incomplete type>
TempBMP2= <incomplete type>
TempImage= <incomplete type>
Pt
   x = 160
   y = 100

Is there any problem 50cm in front of my screen ;-), or I really spotted something?

Thanks!

Nick

David Perfors:
You really spotted something that others also have spotted :P
I have the same problem, but the problem is in the debugger (gdb) and not in Code::Blocks.
To support those types you have to add them to the debugger.
How? I don't know.
Code::Blocks has included wxString, but when I tried my own type of string, I didn't manage to watch it.

I think this is a plus for Microsoft, they have a very nice debugger (and codecompletion...)

takeshimiya:

--- Quote from: mispunt on November 08, 2006, 06:42:42 pm ---they have a very nice debugger

--- End quote ---
so, has anyone tested if this works from codeblocks when using vc and cdb?

David Perfors:
I didn't... It is my experience with visual studio....

Multinode Nick:
Thank you mispunt,

But if you're right, how do you debug your developments without a good Watches window? It must be very time consuming without it...

Like as you said, I noticed that gdb seems to manage wxString and wxPoint but it's blind in front of wxBitmap and wxImage.

wxWidgets seems to be well integrated in Code::Blocks, but how can we use it efficiently if we cannot debug our interfaces?

Navigation

[0] Message Index

[#] Next page

Go to full version