mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 01:39:25 +02:00
ide: code browser: debug info when file failed to load
git-svn-id: trunk@22108 -
This commit is contained in:
parent
10467a9126
commit
08dcae4a3e
@ -997,7 +997,10 @@ begin
|
|||||||
exit;
|
exit;
|
||||||
end;
|
end;
|
||||||
SelectedCode:=CodeToolBoss.LoadFile(SelectedUnitFilename, true, false);
|
SelectedCode:=CodeToolBoss.LoadFile(SelectedUnitFilename, true, false);
|
||||||
if SelectedCode=nil then exit;
|
if SelectedCode=nil then begin
|
||||||
|
debugln(['TCodeBrowserView.UseUnitInSrcEditor failed to load SelectedUnitFilename=',SelectedUnitFilename]);
|
||||||
|
exit;
|
||||||
|
end;
|
||||||
SelectedUnitName:=CodeToolBoss.GetSourceName(SelectedCode, false);
|
SelectedUnitName:=CodeToolBoss.GetSourceName(SelectedCode, false);
|
||||||
|
|
||||||
// add unit to uses section
|
// add unit to uses section
|
||||||
|
Loading…
Reference in New Issue
Block a user