[MonoDevelop] How to debug MD in MD?
Vadim Chekan
kot.begemot at gmail.com
Mon Jan 12 00:44:30 EST 2009
Lluis,
I've fixed the problem. "monodevelop" bash script contains a bug.
In the outer loop "D" variable is already resolved to proper
directory, for example MONO_PREFIX is /usr/local/bin/.. which is
/usr/local, so there is no need to step one directory up in the inner
loop. If you do so, you will never find pkginfo dir in /usr/local/lib.
I've applied this fix and I managed to run MD from under MD. All "no
package named..." errors are gone.
Vadim.
Index: main/monodevelop.in
===================================================================
--- main/monodevelop.in (revision 122970)
+++ main/monodevelop.in (working copy)
@@ -66,7 +66,7 @@
MD_PKG_CONFIG_PATH=""
for D in "$PREFIX/.." "$MONO_PREFIX" "$PKGCONFIG_PREFIX" '/usr/local'
'/usr'; do
- for PKGDIR in "$D/../lib/pkgconfig" "$D/../lib64/pkgconfig"
"$D/../share/pkgconfig"; do
+ for PKGDIR in "$D/lib/pkgconfig" "$D/lib64/pkgconfig" "$D/share/pkgconfig"; do
if [ -d "$PKGDIR" ]; then
MD_PKG_CONFIG_PATH="$MD_PKG_CONFIG_PATH:$PKGDIR"; fi
done
done
On Sun, Jan 11, 2009 at 6:08 PM, Vadim Chekan <kot.begemot at gmail.com> wrote:
> I have problem with using MonoDevelop.mds.
> When I try to "Debug Item" MonoDevelop.Startup project, the compiler
> gives me error:
> "The type or namespace 'Gtk' could not be found" in
> Monodevelop.Projecs.Gui project.
>
> Monodevelop.Projects.Gui refers to gtk-sharp from the Gac.
> Gac shows:
> gacutil -l|grep gtk
> gtk-dotnet, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f
> gtk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f
> ...
>
> pkg-config works too:
> pkg-config --libs gtk-sharp-2.0
> -r:/usr/local/lib/pkgconfig/../../lib/mono/gtk-sharp-2.0/pango-sharp.dll
> -r:/usr/local/lib/pkgconfig/../../lib/mono/gtk-sharp-2.0/atk-sharp.dll
> -r:/usr/local/lib/pkgconfig/../../lib/mono/gtk-sharp-2.0/gdk-sharp.dll
> -r:/usr/local/lib/pkgconfig/../../lib/mono/gtk-sharp-2.0/gtk-sharp.dll
> -r:/usr/local/lib/pkgconfig/../../lib/mono/gtk-sharp-2.0/glib-sharp.dll
>
> Another observation: when I open the MonoDevelop.mds the "Internal
> Message Log" window shows a bunch of errors like this:
>
> Warn - 5:57:20 PM - GLib-GObject-Warning: unable to set property
> `homogeneous' of type `gboolean' from value of type `(null)'
> Stack trace:
> at GLib.Object.CreateNativeObject(System.String[] names, GLib.Value[] vals)
> at Gtk.Object.CreateNativeObject(System.String[] names, GLib.Value[] vals)
> at Gtk.Widget.CreateNativeObject(System.String[] names, GLib.Value[] vals)
> at Gtk.VBox..ctor(Boolean homogeneous, Int32 spacing)
> at Gtk.VBox..ctor()
> at MonoDevelop.SourceEditor.SourceEditorWidget..ctor(MonoDevelop.SourceEditor.SourceEditorView
> view)
> at MonoDevelop.SourceEditor.SourceEditorView..ctor()
> ...
>
> and than
> Warn - 5:57:15 PM - No package named 'glade-sharp-2.0' found. Ignoring.
> Warn - 5:57:15 PM - No package named 'gtk-sharp-2.0' found. Ignoring.
>
> So why MD cant find Gtk namespace?
>
> Vadim.
>
> On Fri, Jan 9, 2009 at 3:06 AM, Lluis Sanchez Gual <lluis at novell.com> wrote:
>> El jue, 08-01-2009 a las 23:47 -0800, Vadim Chekan escribió:
>>> I successfully attached to the process of MD from another instance of MD.
>>> But each time I hit F5, it pauses at some random lines, seemingly
>>> signals and events related.
>>> Is it possible to debug MD from under MD? If no, how do I debug MD?
>>> I have recent MD from svn, Ubuntu-8.10.
>>
>> You have to get MD from SVN and Mono 2.2 RC1. Load the MD solution and
>> start debugging the MonoDevelop.Startup project. Attaching to a running
>> process is not supported by the Mono debugger (it was enabled in
>> previous MD releases, but it will be disabled from now on).
>>
>> Lluis.
>>
>>
>>
>
>
>
> --
> From RFC 2631: In ASN.1, EXPLICIT tagging is implicit unless IMPLICIT
> is explicitly specified
>
--
>From RFC 2631: In ASN.1, EXPLICIT tagging is implicit unless IMPLICIT
is explicitly specified
More information about the Monodevelop-list
mailing list