More changes to make debugging Host Watchdog easier

This commit is contained in:
Jordan Brown
2018-09-08 16:06:13 -04:00
parent ad29d65ced
commit 372cb75c28
2 changed files with 3 additions and 1 deletions
@@ -10,6 +10,7 @@
"profiles": {
"Tgstation.Server.Host.Console": {
"commandName": "Project",
"commandLineArgs": "--attach-host-debugger",
"workingDirectory": "bin\\Debug\\netcoreapp2.0",
"launchBrowser": true,
"environmentVariables": {
@@ -124,7 +124,8 @@ namespace Tgstation.Server.Host.Watchdog
'"' + assemblyPath + '"',
updateDirectory
};
if (Debugger.IsAttached)
if (Environment.GetCommandLineArgs().Any(x => x == "--attach-host-debugger"))
arguments.Add("--attach-debugger");
arguments.AddRange(args);