1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2025-11-06 09:19:38 +02:00

fixed a bunch of things. added basic support for file scanning. logs are now avilable in the UI

This commit is contained in:
Keivan
2010-10-24 00:46:58 -07:00
parent c8a8fb4d62
commit fa0af257ff
48 changed files with 914 additions and 208 deletions

View File

@@ -35,8 +35,8 @@ namespace NzbDrone
dte2 = (DTE2)System.Runtime.InteropServices.Marshal.
GetActiveObject("VisualStudio.DTE.10.0");
var pa = new ProcessAttacher(dte2, "iisexpress", 20);
pa.OptimisticAttachManaged();
var pa = new ProcessAttacher(dte2, "iisexpress", 10);
pa.PessimisticAttachManaged();
}
@@ -87,10 +87,9 @@ namespace NzbDrone
}
catch (Exception ex)
{
if (ex.Message.Contains("Invalid index."))
{
return AttachResult.NotRunning;
}
return AttachResult.NotRunning;
}
proc.Attach2(eng);

View File

@@ -41,7 +41,15 @@ namespace NzbDrone
//Manually Attach debugger to IISExpress
if (Debugger.IsAttached)
{
ProcessAttacher.Attach();
try
{
ProcessAttacher.Attach();
}
catch (Exception e)
{
Logger.Warn("Unable to attach to debugger", e);
}
}
#endif