Bug 314059 - Automatic area switching does not restore correct editor
Summary: Automatic area switching does not restore correct editor
Status: CONFIRMED
Alias: None
Product: kdevplatform
Classification: Developer tools
Component: debugger (show other bugs)
Version: git master
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-29 09:54 UTC by Andreas Pakulat
Modified: 2016-09-07 21:49 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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