mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 17:09:21 +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
|
var
|
||||||
i : Integer;
|
i : Integer;
|
||||||
Param : string;
|
Param : string;
|
||||||
|
HasDebugLog: Boolean;
|
||||||
begin
|
begin
|
||||||
IDEPid := 0;
|
IDEPid := 0;
|
||||||
|
HasDebugLog := False;
|
||||||
for i := 1 to ParamCount do begin
|
for i := 1 to ParamCount do begin
|
||||||
Param := ParamStrUTF8(i);
|
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=' +
|
aCmdLineParams.Add('--debug-log=' +
|
||||||
AppendPathDelim(UTF8ToSys(GetPrimaryConfigPath)) + 'debug.log');
|
AppendPathDelim(UTF8ToSys(GetPrimaryConfigPath)) + 'debug.log');
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user