Well I think i figured out the problem, it was using the older file provided by dev-C++.
I didn't know what you meant by toolchain, but i uninstalled dev-c++, mingw, and codeblocks and reinstalled mingw and code blocks. Then i went to the toolchain tab, autodetected to c:\mingw, and now when i debug i get this error;
"The debugger executable is not set.
To set it, go to "Settings/Complier and debugger", wtich to the 'Programs' tab,
and select the debugger program."
But there is no "programs" tab.