There are two additional ways:
1) [Quick Method] When the intermittent effect is large enough to give you time to press the pause button in the debugger. And then look at what the main thread does (Thread 1), most likely it will not perform user interface tasks. Move this task to the background.
2) When tools with a kernel image are not used.
source share