mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 04:59:35 -07:00
Spawn new mono processes with --debug
This commit is contained in:
parent
fd02f0ae55
commit
d5cc261985
1 changed files with 7 additions and 2 deletions
|
@ -102,7 +102,7 @@ namespace NzbDrone.Common.Processes
|
||||||
{
|
{
|
||||||
if (OsInfo.IsMonoRuntime && path.EndsWith(".exe", StringComparison.InvariantCultureIgnoreCase))
|
if (OsInfo.IsMonoRuntime && path.EndsWith(".exe", StringComparison.InvariantCultureIgnoreCase))
|
||||||
{
|
{
|
||||||
args = path + " " + args;
|
args = GetMonoArgs(path, args);
|
||||||
path = "mono";
|
path = "mono";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -161,7 +161,7 @@ namespace NzbDrone.Common.Processes
|
||||||
{
|
{
|
||||||
if (OsInfo.IsMonoRuntime && path.EndsWith(".exe", StringComparison.InvariantCultureIgnoreCase))
|
if (OsInfo.IsMonoRuntime && path.EndsWith(".exe", StringComparison.InvariantCultureIgnoreCase))
|
||||||
{
|
{
|
||||||
args = path + " " + args;
|
args = GetMonoArgs(path, args);
|
||||||
path = "mono";
|
path = "mono";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -302,5 +302,10 @@ namespace NzbDrone.Common.Processes
|
||||||
|
|
||||||
return processes;
|
return processes;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private string GetMonoArgs(string path, string args)
|
||||||
|
{
|
||||||
|
return String.Format("--debug {0} {1}", path, args);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue