|
|
|
@ -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); |
|
|
|
|