mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-15 21:19:07 +02:00
DBG: do not open virtual unit twice.
git-svn-id: trunk@32724 -
This commit is contained in:
parent
240ec1a82b
commit
5fd3a7a645
@ -40,7 +40,7 @@ interface
|
|||||||
uses
|
uses
|
||||||
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls,
|
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls,
|
||||||
Buttons, Menus, ComCtrls, IDEProcs, Debugger, DebuggerDlg, lclType, ActnList, MainBase,
|
Buttons, Menus, ComCtrls, IDEProcs, Debugger, DebuggerDlg, lclType, ActnList, MainBase,
|
||||||
IDEImagesIntf, SourceEditor;
|
IDEImagesIntf, SourceEditor, MainIntf;
|
||||||
|
|
||||||
type
|
type
|
||||||
TBreakPointsDlgState = (
|
TBreakPointsDlgState = (
|
||||||
@ -801,7 +801,7 @@ begin
|
|||||||
if CurItem=nil then exit;
|
if CurItem=nil then exit;
|
||||||
CurBreakPoint:=TIDEBreakPoint(CurItem.Data);
|
CurBreakPoint:=TIDEBreakPoint(CurItem.Data);
|
||||||
if CurBreakPoint.Kind = bpkSource then
|
if CurBreakPoint.Kind = bpkSource then
|
||||||
MainIDE.DoJumpToSourcePosition(CurBreakPoint.Source, 0, CurBreakPoint.Line, 0, True);
|
MainIDE.DoJumpToSourcePosition(CurBreakPoint.Source, 0, CurBreakPoint.Line, 0, [jfAddJumpPoint, jfSearchVirtualFullPath]);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TBreakPointsDlg.ShowProperties;
|
procedure TBreakPointsDlg.ShowProperties;
|
||||||
|
@ -316,11 +316,11 @@ begin
|
|||||||
ok := false;
|
ok := false;
|
||||||
if FilenameIsAbsolute(Filename) then
|
if FilenameIsAbsolute(Filename) then
|
||||||
ok := MainIDEIntf.DoJumpToSourcePosition(Filename, 0, ALine, 0,
|
ok := MainIDEIntf.DoJumpToSourcePosition(Filename, 0, ALine, 0,
|
||||||
[jfAddJumpPoint, jfFocusEditor, jfMarkLine, jfMapLineFromDebug]
|
[jfAddJumpPoint, jfFocusEditor, jfMarkLine, jfMapLineFromDebug, jfSearchVirtualFullPath]
|
||||||
) = mrOK;
|
) = mrOK;
|
||||||
if not ok then
|
if not ok then
|
||||||
MainIDEIntf.DoJumpToSourcePosition(Filename, 0, ALine, 0,
|
MainIDEIntf.DoJumpToSourcePosition(Filename, 0, ALine, 0,
|
||||||
[jfDoNotExpandFilename, jfAddJumpPoint, jfFocusEditor, jfMarkLine, jfMapLineFromDebug]);
|
[jfDoNotExpandFilename, jfAddJumpPoint, jfFocusEditor, jfMarkLine, jfMapLineFromDebug, jfSearchVirtualFullPath]);
|
||||||
end;
|
end;
|
||||||
finally
|
finally
|
||||||
DebugBoss.UnLockCommandProcessing;
|
DebugBoss.UnLockCommandProcessing;
|
||||||
|
Loading…
Reference in New Issue
Block a user