Codetools: enclose a buggy line in IFnDEF in TCodeCache.LoadFile

git-svn-id: trunk@39055 -
This commit is contained in:
juha 2012-10-12 08:12:07 +00:00
parent d768cb42a7
commit 7da06141ab

View File

@ -589,8 +589,11 @@ begin
if FilenameIsAbsolute(AFilename) then begin
if Result=nil then begin
// load new buffer
if (not FileExistsCached(AFilename)) then
exit;
{$IFnDEF FixCodeCacheLoadFileBug}
// This line is wrong. The file is not in cache and we should not exit here.
// For some reason removing the line breaks debugger, that's why the IFnDEF
if (not FileExistsCached(AFilename)) then exit;
{$ENDIF}
if DirectoryCachePool<>nil then
DiskFilename:=DirectoryCachePool.FindDiskFilename(AFilename)
else