mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-30 16:39:21 +01:00
More changes to make debugging Host Watchdog easier
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user