mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-17 08:09:26 +02:00
IDE: Commandline parser for startlazarus should not override specific --debug-log=user_specified, with generic --debug-log
git-svn-id: trunk@42504 -
This commit is contained in:
parent
111a4e4b9d
commit
d6fc8c8369
@ -82,11 +82,15 @@ const
|
||||
var
|
||||
i : Integer;
|
||||
Param : string;
|
||||
HasDebugLog: Boolean;
|
||||
begin
|
||||
IDEPid := 0;
|
||||
HasDebugLog := False;
|
||||
for i := 1 to ParamCount do begin
|
||||
Param := ParamStrUTF8(i);
|
||||
if Param=LazarusDebugOpt then begin
|
||||
if SysUtils.CompareText(LeftStr(Param, length(DebugLogOpt)), DebugLogOpt) = 0 then
|
||||
HasDebugLog := HasDebugLog or (length(Param) > length(DebugLogOpt));
|
||||
if (Param=LazarusDebugOpt) and (not HasDebugLog) then begin
|
||||
aCmdLineParams.Add('--debug-log=' +
|
||||
AppendPathDelim(UTF8ToSys(GetPrimaryConfigPath)) + 'debug.log');
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user