--- a/trunk/cforge/cforge/Helper.cs +++ b/trunk/cforge/cforge/Helper.cs @@ -99,6 +99,22 @@ #endregion + public static bool EasyAttachEnabled() + { + try + { + String path = GetCFORGEAssemblyPath(); + String Debugfile = Path.Combine(Path.GetDirectoryName(path), "debug"); + if (File.Exists(Debugfile)) + return true; + } + catch + { + + } + return false; + } + /// <summary> /// Function to retrieve the location of the currenty assembly (cforge.exe). /// This should be located in the CODESYS installation subfolder "CFORGE" @@ -253,7 +269,7 @@ { Console.WriteLine(); - Console.WriteLine("[Exception] command " + command + ".py caused an exception: " + ex.Message); + Console.WriteLine("[Exception] command " + command + ".py caused an exception: " ); ExceptionOperations eo = engine.GetService<ExceptionOperations>(); string error = eo.FormatException(ex);