Stop debug with ctrl-F2, moves focus away from Editor
Original Reporter info from Mantis: Martin @martin_frb
-
Reporter name: Martin Friebe
Original Reporter info from Mantis: Martin @martin_frb
- Reporter name: Martin Friebe
Description:
If you are debugging an application, and the sourceeditor has focus: press ctrl-F2.
This will stop your running app, and unfocus the editor. The problem is caused by Application.BringToFront (presumingly it moves the focus to the apps main window)
The same happens, if you close the debugged app from within the app (close-button) => the focus ends up somewhere else. It shoold be on the last focused control of the IDE in this case
related to #9883 (closed)
Additional information:
#44 TWIN32WIDGETSET__APPBRINGTOFRONT(0x96900a8) at win32object.inc:225
#45 TAPPLICATION__BRINGTOFRONT(0x1bf868) at .\include\application.inc:197
#46 TDEBUGMANAGER__DEBUGGERCHANGESTATE(0xb956d40, DSRUN, 0x2114b0) at debugmanager.pas:1480
#47 TDEBUGGER__DOSTATE(DSRUN, 0xb956d40) at C:\lazarus_latest\debugger\debugger.pp:1556
#48 TGDBMIDEBUGGER__DOSTATE(DSRUN, 0xb956d40) at C:\lazarus_latest\debugger\gdbmidebugger.pp:1151
#49 TDEBUGGER__SETSTATE(DSSTOP, 0xb956d40) at C:\lazarus_latest\debugger\debugger.pp:1774
#50 TGDBMIDEBUGGER__EXECUTECOMMANDFULL(0xedf538 '-exec-continue', <incomplete type>, [], 0, 0, {STATE = DSRUN, VALUES = 0x0, FLAGS = []}, -1, 0xb956d40) at C:\lazarus_latest\debugger\gdbmidebugger.pp:1252
#51 TGDBMIDEBUGGER__EXECUTECOMMAND(0xedf538 '-exec-continue', [], 0xb956d40) at C:\lazarus_latest\debugger\gdbmidebugger.pp:1159
#52 TGDBMIDEBUGGER__STARTDEBUGGING(0xedf538 '-exec-continue', 0xb956d40) at C:\lazarus_latest\debugger\gdbmidebugger.pp:3190
#53 TGDBMIDEBUGGER__GDBRUN(0xb956d40) at C:\lazarus_latest\debugger\gdbmidebugger.pp:1779
#54 TGDBMIDEBUGGER__REQUESTCOMMAND(DCRUN, <incomplete type>, -1, 0xb956d40) at C:\lazarus_latest\debugger\gdbmidebugger.pp:2842
#55 TDEBUGGER__REQCMD(DCRUN, <incomplete type>, -1, 0xb956d40) at C:\lazarus_latest\debugger\debugger.pp:1684
#56 TDEBUGGER__RUN(0xb956d40) at C:\lazarus_latest\debugger\debugger.pp:1698
#57 TDEBUGMANAGER__RUNDEBUGGER(0x2114b0) at debugmanager.pas:2320
#58 TMAINIDE__DORUNPROJECT(0x9710c10) at main.pp:9777
#59 TMAINIDE__ONPROCESSIDECOMMAND(0x98c0cb0, 1405, true, 0x9710c10) at main.pp:2794
#60 TSOURCENOTEBOOK__PROCESSPARENTCOMMAND(0xbb585e8, 1405, '', 0x0, true, 0x98c0cb0) at sourceeditor.pp:6430
#61 TSOURCEEDITOR__PROCESSUSERCOMMAND(0xc435548, 1405, '', 0x0, 0xbb585e8) at sourceeditor.pp:1778
#62 TCUSTOMSYNEDIT__DOONPROCESSCOMMAND(1405, '', 0x0, 0xc435548) at synedit.pp:6093
#63 TCUSTOMSYNEDIT__COMMANDPROCESSOR(1405, '', 0x0, 0xc435548) at synedit.pp:5471
#64 TCUSTOMSYNEDIT__KEYDOWN(0, [], 0xc435548) at synedit.pp:2249
#65 TWINCONTROL__KEYDOWNBEFOREINTERFACE(0, [], 0xc435548) at .\include\wincontrol.inc:5148
#66 TWINCONTROL__DOKEYDOWNBEFOREINTERFACE({MSG = 48384, CHARCODE = 0, UNUSED = 2440, KEYDATA = 4390913, RESULT = 0}, 0xc435548) at .\include\wincontrol.inc:5284
Mantis conversion info:
- Mantis ID: 14294
- Version: 0.9.27 (SVN)
- Fixed in version: 0.9.30
- Monitored by: » luizamerico (Luiz Americo), » etrusco (Flávio Etrusco)
- Target version: 1.2.0
- LazTarget: 1.2