Hi!
I have found a bug in debugger plugin (CB 8.02).
Go to Project-> Proporties-> change something-> OK-> File->Save Project
Now .cbp file is:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
<Project>
<Option title="BphSop" />
<Option makefile_is_custom="1" />
<Option pch_mode="2" />
<Option compiler="gcc" />
<MakeCommands>
<Build command="$make -f $makefile.$target" />
<CompileFile command="$make -f $makefile $file" />
<Clean command="$make -f $makefile.$target clean" />
<DistClean command="$make -f $makefile.$target distclean" />
</MakeCommands>
<Build>
<Target title="BphSop">
<Option output="bin\BphSop" prefix_auto="1" extension_auto="1" />
<Option object_output="obj" />
<Option type="0" />
<Option compiler="gcc" />
<MakeCommands>
<Build command="$make -f $makefile.$target" />
<CompileFile command="$make -f $makefile $file" />
<Clean command="$make -f $makefile.$target clean" />
<DistClean command="$make -f $makefile.$target distclean" />
</MakeCommands>
</Target>
</Build>
<Unit filename="headers\MainWindow.hpp" />
<Unit filename="sources\Main.cpp" />
<Unit filename="sources\MainWindow.cpp" />
<Extensions>
<code_completion>
<search_path add="$(#qt4.include)" />
<search_path add="$(#qt4.include)\QtCore" />
<search_path add="$(#qt4.include)\QtGui" />
</code_completion>
<debugger />
<qtworkbench>
<enabled value="true" />
</qtworkbench>
</Extensions>
</Project>
</CodeBlocks_project_file>
<debugger /> -this is very ugly, because it invalidates everything after it, causing many problems. Disabling debugger plugin solved the problem.