User forums > Using Code::Blocks

Debug Threads

(1/1)

Achromat:
Hi,

i have an mutiple Socketlistener with somer threads.

When i set an Halt-Point the Debugger trigger this Point and the Code around +/- 3 Lines
and jump with Hal marker around the Setting halt Point. By press 3-5 x F7 step by step
the Point is leave and the process runs again.

What goes up with jumping haltpoints, or instable Programm flow in debug Modus ?

Thanks für suggestions
 Karsten from Berlin

BlueHazzard:
Lets clear up some things: Codeblocks is nor a compiler, nor a debugger. Codeblocks is a IDE.
Codeblocks is only a GUI for gdb so mostly to solve a problem you search on google how to solve this problem with gdb and then you look how this is done in codeblocks

Your problem is mostly caused by this:
http://stackoverflow.com/questions/26573277/gdb-debugging-multithreading-execution-is-unpredictable-for-single-thread

so as i have written in the other post turn off optimization...

Navigation

[0] Message Index

Go to full version