DllExporter: Improve support for debugging

This commit is contained in:
Greg Tatham 2013-05-30 17:00:05 +03:00 committed by Birunthan Mohanathas
parent ca0f2e608f
commit 05a9d9188d

View File

@ -64,7 +64,12 @@ namespace DllExporter
// Disassemble
Process ildasmProc = new Process();
string ildasmArgs = string.Format("/nobar /output=\"{0}\" \"{1}\"", targetIlName, targetDllName);
string ildasmArgs = string.Format(
"/nobar {0} /output=\"{1}\" \"{2}\"",
isDebug ? "/linenum" : "",
targetIlName,
targetDllName);
ildasmProc.StartInfo = new ProcessStartInfo(ildasmPath, ildasmArgs);
ildasmProc.StartInfo.UseShellExecute = false;
ildasmProc.StartInfo.CreateNoWindow = false;