I am not sure if this is a Code::Blocks, or a wxWidgets, issue.
I am able to compile and run the wxWidgets 3.0.4 application in the debugger by using the red arrowhead. After that I navigate to "Debug => Stop debugger" but the application is not stopped. Even after closing the application's window using its windows x icon in the upper right corner I cannot recompile because the debugger still has the .exe file, regardless of how many times I navigate to "Debug => Stop debugger". That the debugger is not stopped is indicated by "Stop debugger" menu item never graying out.
My Code::Blocks version is 17.12.