[Gtk-sharp-list] Patch for debugging line numbers
Shane Hyde
shane@enactive.org
Thu, 3 Jul 2003 00:22:04 +1000
When debugging inside GTK# on Visual Studio.NET, the line numbers are =
out by one.
Here is a patch which fixes it.
--- GenBase.cs.orig 2003-07-02 23:15:02.000000000 +1000
+++ GenBase.cs 2003-07-02 23:07:47.000000000 +1000
@@ -101,8 +101,8 @@
char sep =3D Path.DirectorySeparatorChar;
string custom =3D ".." + sep + NS.ToLower() + =
sep + Name +
".custom";
if (File.Exists(custom)) {
- sw.WriteLine ("#line 1 \"" + Name + =
".custom\"");
sw.WriteLine ("#region Customized =
extensions");
+ sw.WriteLine ("#line 1 \"" + Name + =
".custom\"");
FileStream custstream =3D new =
FileStream(custom, FileMode.Open, FileAccess.Read);
StreamReader sr =3D new =
StreamReader(custstream);
sw.WriteLine (sr.ReadToEnd ());