Browse Source

Fix SD-1779 - Attach to process form does not show .NET 2.0 processes

pull/14/head
Eusebiu Marcu 15 years ago
parent
commit
7547363c98
  1. 7
      src/AddIns/Debugger/Debugger.AddIn/Service/AttachToProcessForm.cs

7
src/AddIns/Debugger/Debugger.AddIn/Service/AttachToProcessForm.cs

@ -5,7 +5,9 @@ using System; @@ -5,7 +5,9 @@ using System;
using System.ComponentModel;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Windows.Forms;
using ICSharpCode.Core;
using ICSharpCode.SharpDevelop.Debugging;
using ICSharpCode.SharpDevelop.Gui;
@ -23,7 +25,10 @@ namespace ICSharpCode.SharpDevelop.Services @@ -23,7 +25,10 @@ namespace ICSharpCode.SharpDevelop.Services
{
this.process = process;
try {
managed = debugger.IsManaged(process.Id);
var modules = process.Modules.Cast<ProcessModule>().Where(
m => m.ModuleName.StartsWith("mscor", StringComparison.InvariantCultureIgnoreCase));
managed = modules.Count() > 0;
} catch { }
string fileName = Path.GetFileName(process.MainModule.FileName);

Loading…
Cancel
Save