mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-27 11:20:33 +02:00
FpDebug: Change debugging flags on process creation. Allow debugged 32bit processes to launch 64bit sub-processes without the debugger interfering. Sub-processes are anyway currently not debugged. Issue #0038546
git-svn-id: trunk@64779 -
This commit is contained in:
parent
13fc4dd5e2
commit
82c6e8b284
@ -647,7 +647,8 @@ begin
|
|||||||
result := nil;
|
result := nil;
|
||||||
AProcess := TProcessUTF8.Create(nil);
|
AProcess := TProcessUTF8.Create(nil);
|
||||||
try
|
try
|
||||||
AProcess.Options:=[poDebugProcess, poNewProcessGroup];
|
// To debug sub-processes, this needs to be poDebugProcess
|
||||||
|
AProcess.Options:=[poDebugProcess, poDebugOnlyThisProcess, poNewProcessGroup];
|
||||||
if siForceNewConsole in AFlags then
|
if siForceNewConsole in AFlags then
|
||||||
AProcess.Options:=AProcess.Options+[poNewConsole];
|
AProcess.Options:=AProcess.Options+[poNewConsole];
|
||||||
AProcess.Executable:=AFilename;
|
AProcess.Executable:=AFilename;
|
||||||
|
Loading…
Reference in New Issue
Block a user