Bug 314059

Summary: Automatic area switching does not restore correct editor
Product: [Developer tools] kdevplatform Reporter: Andreas Pakulat <apaku>
Component: debuggerAssignee: kdevelop-bugs-null
Status: CONFIRMED ---    
Severity: normal CC: niko.sams
Priority: NOR    
Version First Reported In: git master   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Andreas Pakulat 2013-01-29 09:54:33 UTC
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.
Comment 1 Milian Wolff 2016-09-07 21:49:23 UTC
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