mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-07 13:00:17 +02:00
codetools: added flag -dVerboseFindDeclarationFail
git-svn-id: trunk@39749 -
This commit is contained in:
parent
60fd65da29
commit
8298e344f3
@ -64,6 +64,7 @@ interface
|
||||
{ $DEFINE ShowCacheDependencies}
|
||||
{ $DEFINE ShowCollect}
|
||||
{ $DEFINE ShowProcSearch}
|
||||
{ $DEFINE VerboseFindDeclarationFail}
|
||||
{ $DEFINE DebugAddToolDependency}
|
||||
|
||||
{$IFDEF CTDEBUG}{$DEFINE DebugPrefix}{$ENDIF}
|
||||
@ -1582,6 +1583,14 @@ begin
|
||||
finally
|
||||
ClearIgnoreErrorAfter;
|
||||
DeactivateGlobalWriteLock;
|
||||
{$IFDEF VerboseFindDeclarationFail}
|
||||
debugln(['TFindDeclarationTool.FindDeclaration failed',
|
||||
' CursorPos=X=',CursorPos.X,',Y=',CursorPos.Y,
|
||||
',File=',CursorPos.Code.Filename,
|
||||
',LineCount=',CursorPos.Code.LineCount]);
|
||||
if CursorPos.Y<=CursorPos.Code.LineCount then
|
||||
debugln([' Line="',dbgstr(CursorPos.Code.GetLine(CursorPos.Y-1),1,CursorPos.X-1),'|',dbgstr(CursorPos.Code.GetLine(CursorPos.Y-1),CursorPos.X,1000),'"']);
|
||||
{$ENDIF}
|
||||
end;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user