mirror of
https://github.com/fergalmoran/Readarr.git
synced 2025-12-31 22:09:07 +00:00
Spawn new mono processes with --debug
This commit is contained in:
@@ -102,7 +102,7 @@ namespace NzbDrone.Common.Processes
|
||||
{
|
||||
if (OsInfo.IsMonoRuntime && path.EndsWith(".exe", StringComparison.InvariantCultureIgnoreCase))
|
||||
{
|
||||
args = path + " " + args;
|
||||
args = GetMonoArgs(path, args);
|
||||
path = "mono";
|
||||
}
|
||||
|
||||
@@ -161,7 +161,7 @@ namespace NzbDrone.Common.Processes
|
||||
{
|
||||
if (OsInfo.IsMonoRuntime && path.EndsWith(".exe", StringComparison.InvariantCultureIgnoreCase))
|
||||
{
|
||||
args = path + " " + args;
|
||||
args = GetMonoArgs(path, args);
|
||||
path = "mono";
|
||||
}
|
||||
|
||||
@@ -302,5 +302,10 @@ namespace NzbDrone.Common.Processes
|
||||
|
||||
return processes;
|
||||
}
|
||||
|
||||
private string GetMonoArgs(string path, string args)
|
||||
{
|
||||
return String.Format("--debug {0} {1}", path, args);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user