Author Topic: Is it possible to set conditional breakpoints (debugging)?  (Read 4918 times)

Offline lphilpot

  • Multiple posting newcomer
  • *
  • Posts: 11
Is it possible to set conditional breakpoints (debugging)?
« on: December 30, 2009, 11:40:20 pm »
I've Googled and searched the forums - Found one post asking this question almost a year ago (http://forums.codeblocks.org/index.php/topic,10033.0.html), but without a definitive answer, so I'll ask again...

Is it possible to set conditional debugging breakpoints in C::B, i.e., tell it to break if z > y or if x == 12 etc.? I know about watches, etc., but I'm wanting to break on a specified condition.

...or do I need to talk directly to gdb for that? If so, looks like I have ~500 pages of PDF to scan/read...  8)

Thanks!

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Is it possible to set conditional breakpoints (debugging)?
« Reply #1 on: December 31, 2009, 02:36:55 am »
Yes, you can -> right click on the red dot, then edit breakpoint
(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 lphilpot

  • Multiple posting newcomer
  • *
  • Posts: 11
Re: Is it possible to set conditional breakpoints (debugging)?
« Reply #2 on: December 31, 2009, 04:03:33 am »
Duhhh....  :?

HOW did I miss that?!?  I've been over it again and again and it just didn't register when I saw it.... wonder what else I've missed...

Thanks!   :)