public void test_ExeCreation_automatic() { var targetMethod = DI.reflection.getMethod(typeof(TestClass), "TestMethod", null); Assert.That(targetMethod != null, "targetMethod was null"); var exeInPackagedDirectory = StandAloneExe.createPackagedDirectoryForMethod(targetMethod); Assert.That(File.Exists(exeInPackagedDirectory), "exeInPackagedDirectory was not created"); DI.log.info("New exe and pdb are on directory {0}", Path.GetDirectoryName(exeInPackagedDirectory)); }
public static void debugMethod(MethodInfo targetMethod, string loadDllsFrom) { if (IsDebuggerAvailable() == false) { DI.log.error("in debugMethod, could not debug method since there is no Debugger Available"); } else { DI.log.debug("Starting method under debugged: {0}", targetMethod.Name); var exeInPackagedDirectory = StandAloneExe.createPackagedDirectoryForMethod(targetMethod, loadDllsFrom); startProcessUnderDebugger(exeInPackagedDirectory); } }