|
|
|
@ -153,14 +153,14 @@ namespace ICSharpCode.SharpDevelop.Services |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var project = ProjectService.CurrentProject as CompilableProject; |
|
|
|
var project = ProjectService.CurrentProject as CompilableProject; |
|
|
|
|
|
|
|
System.Diagnostics.Process localProcess = null; |
|
|
|
if (project != null) { |
|
|
|
if (project != null) { |
|
|
|
// start browser
|
|
|
|
// start browser
|
|
|
|
if (project.StartAction == StartAction.StartURL) |
|
|
|
if (project.StartAction == StartAction.StartURL) |
|
|
|
System.Diagnostics.Process.Start(processStartInfo.FileName); |
|
|
|
localProcess = System.Diagnostics.Process.Start(processStartInfo.FileName); |
|
|
|
else |
|
|
|
else |
|
|
|
if (!string.IsNullOrEmpty(debugData.Data.ProjectUrl) && debugData.Data.WebServer == WebServer.IIS) |
|
|
|
if (!string.IsNullOrEmpty(debugData.Data.ProjectUrl) && debugData.Data.WebServer == WebServer.IIS) |
|
|
|
System.Diagnostics.Process.Start("iexplore.exe", debugData.Data.ProjectUrl); |
|
|
|
localProcess = System.Diagnostics.Process.Start(debugData.Data.ProjectUrl); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// try debug IIS WP
|
|
|
|
// try debug IIS WP
|
|
|
|
@ -177,9 +177,17 @@ namespace ICSharpCode.SharpDevelop.Services |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (!attached) { |
|
|
|
if (!attached) { |
|
|
|
|
|
|
|
if(debugData.Data.WebServer == WebServer.IIS) { |
|
|
|
string format = ResourceService.GetString("ICSharpCode.WepProjectOptionsPanel.NoIISWP"); |
|
|
|
string format = ResourceService.GetString("ICSharpCode.WepProjectOptionsPanel.NoIISWP"); |
|
|
|
MessageService.ShowMessage(string.Format(format, processName)); |
|
|
|
MessageService.ShowMessage(string.Format(format, processName)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
else { |
|
|
|
|
|
|
|
Attach(localProcess); |
|
|
|
|
|
|
|
if (!attached) { |
|
|
|
|
|
|
|
MessageService.ShowMessage(ResourceService.GetString("ICSharpCode.WepProjectOptionsPanel.UnableToAttach")); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
else { |
|
|
|
else { |
|
|
|
string version = debugger.GetProgramVersion(processStartInfo.FileName); |
|
|
|
string version = debugger.GetProgramVersion(processStartInfo.FileName); |
|
|
|
@ -241,6 +249,9 @@ namespace ICSharpCode.SharpDevelop.Services |
|
|
|
|
|
|
|
|
|
|
|
public void Attach(System.Diagnostics.Process existingProcess) |
|
|
|
public void Attach(System.Diagnostics.Process existingProcess) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
if (existingProcess == null) |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
if (IsDebugging) { |
|
|
|
if (IsDebugging) { |
|
|
|
MessageService.ShowMessage(errorDebugging); |
|
|
|
MessageService.ShowMessage(errorDebugging); |
|
|
|
return; |
|
|
|
return; |
|
|
|
|