Thanks. It seems that processEvents() inside Qt C++ code is the only solution to use script debugger for long executing script .