mail-archives/monodevelop-patches-list/2004-March/000697.html

132 строки
5.7 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Monodevelop-patches-list] r1092 - in trunk/MonoDevelop: . src/Main/Base/Services
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:monodevelop-patches-list%40lists.ximian.com?Subject=%5BMonodevelop-patches-list%5D%20r1092%20-%20in%20trunk/MonoDevelop%3A%20.%20src/Main/Base/Services&In-Reply-To=">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="000696.html">
<LINK REL="Next" HREF="000698.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Monodevelop-patches-list] r1092 - in trunk/MonoDevelop: . src/Main/Base/Services</H1>
<B>commit-watcher at mono-cvs.ximian.com</B>
<A HREF="mailto:monodevelop-patches-list%40lists.ximian.com?Subject=%5BMonodevelop-patches-list%5D%20r1092%20-%20in%20trunk/MonoDevelop%3A%20.%20src/Main/Base/Services&In-Reply-To="
TITLE="[Monodevelop-patches-list] r1092 - in trunk/MonoDevelop: . src/Main/Base/Services">commit-watcher at mono-cvs.ximian.com
</A><BR>
<I>Wed Mar 3 16:35:11 EST 2004</I>
<P><UL>
<LI>Previous message: <A HREF="000696.html">[Monodevelop-patches-list] r1091 - in trunk/MonoDevelop: build/data/resources/icons src/AddIns/DisplayBindings/SourceEditor/Gui
</A></li>
<LI>Next message: <A HREF="000698.html">[Monodevelop-patches-list] r1093 - in trunk/MonoDevelop: . build/AddIns build/data/resources/icons src/AddIns/DisplayBindings/SourceEditor/Gui src/Main/Base/Services
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#697">[ date ]</a>
<a href="thread.html#697">[ thread ]</a>
<a href="subject.html#697">[ subject ]</a>
<a href="author.html#697">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>Author: mkestner
Date: 2004-03-03 16:35:11 -0500 (Wed, 03 Mar 2004)
New Revision: 1092
Modified:
trunk/MonoDevelop/ChangeLog
trunk/MonoDevelop/src/Main/Base/Services/DebuggingService.cs
Log:
2004-03-03 Mike Kestner &lt;<A HREF="http://lists.ximian.com/mailman/listinfo/monodevelop-patches-list">mkestner at ximian.com</A>&gt;
* Main/Base/Services/DebuggingService.cs : add some debugging info
and run the debugger before we insert breakpoints.
Modified: trunk/MonoDevelop/ChangeLog
===================================================================
--- trunk/MonoDevelop/ChangeLog 2004-03-03 20:35:43 UTC (rev 1091)
+++ trunk/MonoDevelop/ChangeLog 2004-03-03 21:35:11 UTC (rev 1092)
@@ -1,5 +1,10 @@
2004-03-03 Mike Kestner &lt;<A HREF="http://lists.ximian.com/mailman/listinfo/monodevelop-patches-list">mkestner at ximian.com</A>&gt;
+ * Main/Base/Services/DebuggingService.cs : add some debugging info
+ and run the debugger before we insert breakpoints.
+
+2004-03-03 Mike Kestner &lt;<A HREF="http://lists.ximian.com/mailman/listinfo/monodevelop-patches-list">mkestner at ximian.com</A>&gt;
+
* Main/Base/Services/DebuggingService.cs (UnloadService): kill
running debugger instances on unload.
Modified: trunk/MonoDevelop/src/Main/Base/Services/DebuggingService.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Services/DebuggingService.cs 2004-03-03 20:35:43 UTC (rev 1091)
+++ trunk/MonoDevelop/src/Main/Base/Services/DebuggingService.cs 2004-03-03 21:35:11 UTC (rev 1092)
@@ -103,17 +103,25 @@
return;
backend = new DebuggerBackend ();
- foreach (string key in breakpoints.Keys) {
+ proc = backend.Run (ProcessStart.Create (null, argv));
+ string[] keys = new string [breakpoints.Keys.Count];
+ breakpoints.Keys.CopyTo (keys, 0);
+ foreach (string key in keys) {
Breakpoint point = CreateBreakpoint (key);
string[] toks = point.Name.Split (':');
string filename = toks [0];
int linenumber = Int32.Parse (toks [1]);
+ Console.WriteLine (&quot;Looking up &quot; + filename + &quot; &quot; + linenumber);
SourceLocation loc = backend.FindLocation(filename, linenumber);
- if (loc == null)
+ if (loc == null) {
+ Console.WriteLine (&quot;Couldn't find breakpoint location &quot; + key);
return;
+ }
breakpoints [key] = loc.InsertBreakpoint (proc, point);
+ if (breakpoints [key] == null)
+ Console.WriteLine (&quot;Couldn't insert breakpoint &quot; + key);
}
- proc = backend.Run (ProcessStart.Create (null, argv));
+ proc.Continue (false);
}
public void Stop ()
@@ -136,7 +144,8 @@
int linenumber = Int32.Parse (toks [1]);
BreakpointHitArgs args = new BreakpointHitArgs (filename, linenumber);
- this.BreakpointHit (this, args);
+ BreakpointHit (this, args);
+ Console.WriteLine (&quot;hit breakpoint &quot; + point.Name);
}
public event DebuggingService.BreakpointHitHandler BreakpointHit;
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="000696.html">[Monodevelop-patches-list] r1091 - in trunk/MonoDevelop: build/data/resources/icons src/AddIns/DisplayBindings/SourceEditor/Gui
</A></li>
<LI>Next message: <A HREF="000698.html">[Monodevelop-patches-list] r1093 - in trunk/MonoDevelop: . build/AddIns build/data/resources/icons src/AddIns/DisplayBindings/SourceEditor/Gui src/Main/Base/Services
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#697">[ date ]</a>
<a href="thread.html#697">[ thread ]</a>
<a href="subject.html#697">[ subject ]</a>
<a href="author.html#697">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.ximian.com/mailman/listinfo/monodevelop-patches-list">More information about the Monodevelop-patches-list
mailing list</a><br>
</body></html>