C Programming: Debugging with pthreads

后端 未结 8 2011
余生分开走
余生分开走 2020-12-07 14:47

One of the hardest things for me to initially adjust to was my first intense experience programming with pthreads in C. I was used to knowing exactly what the next line of c

8条回答
  •  [愿得一人]
    2020-12-07 15:42

    I tend to use lots of breakpoints. If you don't actually care about the thread function, but do care about it's side effects a good time to check them might be right before it exits or loops back to it's waiting state or whatever else it's doing.

提交回复
热议问题