I've just done a few debug sessions, starting it with the Debug toolbar button and stopping it through the corresponding Stop action or Continue. I've had a breakpoint set in main.cpp and had a couple of other files open. The Editor area was showing main.cpp, switching to the Debug area did not change this. However once the app exited (because it has been stopped or run to the end) I was left with a seemingly random file being visible in the Editor area. It seems to be the same file that was initially shown upon starting KDevelop. Reproducible: Always Steps to Reproduce: 1. Open main.cpp 2. Open a couple of other files 3. set breakpoint 4. Start debug session 5. End debug session (either stop or let app run) Actual Results: Editor area shows the file that was initially opened when KDevelop started. Expected Results: Editor area shows the file that was active when the Debug session started - main.cpp. Only thing I can think of being related is that I have the tabbar disabled.
when switching to the debug area, we show the wrong file first, but when switching back everything gets properly restored for me. since we focus the right doc when we hit a breakpoint, I'm decreasing the importance of this bug