[Qt-creator] Debugging

Andre Poenitz andre.poenitz at mathematik.tu-chemnitz.de
Sun Feb 1 13:29:07 CET 2009


On Sun, Feb 01, 2009 at 12:04:06PM +0100, Maximilien Renard wrote:
> A few days ago I've discovered the awesome debug mode in QtCreator
> (which allows to see the value of all the variables of my program and
> so on) but I have two problems with it :
> 
> 1) I've not been able to hide the debug toolbar once I don't want to
> use it anymore. I mean, I can hide watchers, stack,... one by one and
> then only the bar with "app runing" or "whatever signal received" etc
> is still displayed but it's kinda annoying. Isn't there a way to just
> hide the whole debug thing ?

By going back to "edit" mode (left panel, or Ctrl-2).
 
> 2) I've used the debugging mode when my app crashed. The stack lead me
> to a line in my program. It was located in a for loop (for i = 0, size
> = 158; i < size; i++) {} ). When the app crashed, QtCreator debug told
> me that the value of i was 158. So, what's the problem ? Is there
> something wrong with QtCreator or maybe it's a normal behavior for
> debugging ?

i will have the value 158 after leaving that loop. Depending on where
exactly your program crashed, seeing 158 is nothing unusual

Regards,
Andre'



More information about the Qt-creator-old mailing list