diff --git a/ide/debugmanager.pas b/ide/debugmanager.pas index 184f91075b..2e8b2271a3 100644 --- a/ide/debugmanager.pas +++ b/ide/debugmanager.pas @@ -605,7 +605,7 @@ var AnUnitInfo: TLazProjectFile; begin Result := False; - if Destroying then exit; + if Destroying or (Filename = '') then exit; (* The below currently does not work for unsaved projects *) //Result := FilenameIsAbsolute(Filename); //if Result then exit;