从另一个程序/ shell调用后附加到Visual Studio Process

时间:2018-08-30 08:56:00

标签: process visual-studio-debugging

从其他程序或外壳启动.Net Core Application之后,Hello可以采用任何方法对其进行调试。 基本上我有Console App可以从python脚本多次运行。 Python
subprocess.call("dotnet [path]MyApp.dll 1 2 3)" subprocess.call("dotnet [path]MyApp.dll 2 3 4") 我希望能够使用来自外部源的参数调用.NET应用程序后开始对其进行调试。

Net App

   namespace MyApp
   { 
      class Prgoram
      {
        public static void Main(string [] args)
        {
         Console.Writeline("You inserted the following args:{args[0]}{args[1]}{args[2]}");
          ------------Breakpoint Here -----------------------------
          ....other code..........
        }
      }
    }

0 个答案:

没有答案