Re: How to debug F-Spot
On Thu, 2009-12-03 at 12:23 +0100, Ruben Vermeersch wrote: > On Thu, 2009-12-03 at 12:10 +0100, Ali Servet Donmez wrote: > > Hey Ruben, > > > > thanks for your reply. > > > > On Thu, 2009-12-03 at 10:43 +0100, Ruben Vermeersch wrote: > > > It seems as if you miss .mdb (debug symbols), which is why it can't make > > > a trace. > > > > I'm not sure if that's the real issue here. I see all those missing > > *.mdb lines, but debugger will still go on without'em, the problem --I > > believe-- when an exception is caught... > > > > Then I figured out actually a System.DllNotFoundException is thrown and > > that's because /home/exalted/unstable/f-spot/lib/f-spot/libfspot.so.0 is > > not there. Apparently you have to install f-spot before debugging to > > path where you've specified in autogen.sh (or configure) with prefix > > parameter. > > > > Once you issue "make install" on build directory then debugger will run > > that's because all *.so* files are where they should be. > > Fair enough :-) Did you actually get the debugger to function correctly? > That would be an achievement that has always been impossible to reach on > my system. Should try again. Yes, f-spot fires up, but apparently I'm not as smart as someone else who is able to use the debugger. How would you add a single breakpoint to HandleToggleViewBrowse method in src/MainWindow.cs for instance? I tried "break MainWindow.HandleToggleViewBrowse", I'm not sure if that will do the job... -- Ali Servet Donmez signature.asc Description: This is a digitally signed message part ___ F-spot-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/f-spot-list
Re: How to debug F-Spot
On Thu, 2009-12-03 at 12:10 +0100, Ali Servet Donmez wrote: > Hey Ruben, > > thanks for your reply. > > On Thu, 2009-12-03 at 10:43 +0100, Ruben Vermeersch wrote: > > It seems as if you miss .mdb (debug symbols), which is why it can't make > > a trace. > > I'm not sure if that's the real issue here. I see all those missing > *.mdb lines, but debugger will still go on without'em, the problem --I > believe-- when an exception is caught... > > Then I figured out actually a System.DllNotFoundException is thrown and > that's because /home/exalted/unstable/f-spot/lib/f-spot/libfspot.so.0 is > not there. Apparently you have to install f-spot before debugging to > path where you've specified in autogen.sh (or configure) with prefix > parameter. > > Once you issue "make install" on build directory then debugger will run > that's because all *.so* files are where they should be. Fair enough :-) Did you actually get the debugger to function correctly? That would be an achievement that has always been impossible to reach on my system. Should try again. ___ F-spot-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/f-spot-list
Re: How to debug F-Spot
Hey Ruben, thanks for your reply. On Thu, 2009-12-03 at 10:43 +0100, Ruben Vermeersch wrote: > It seems as if you miss .mdb (debug symbols), which is why it can't make > a trace. I'm not sure if that's the real issue here. I see all those missing *.mdb lines, but debugger will still go on without'em, the problem --I believe-- when an exception is caught... Then I figured out actually a System.DllNotFoundException is thrown and that's because /home/exalted/unstable/f-spot/lib/f-spot/libfspot.so.0 is not there. Apparently you have to install f-spot before debugging to path where you've specified in autogen.sh (or configure) with prefix parameter. Once you issue "make install" on build directory then debugger will run that's because all *.so* files are where they should be. > On Mon, 2009-11-30 at 16:59 +0100, Ali Servet Donmez wrote: > > Hi, > > > > simply trying to debug f-spot using mdb, but no luck there. > > > > Having: > > > > -- > > NAME="f-spot" > > > > DEV_DIR="$HOME/dev" > > > > BUILD_DIR="$HOME/build" > > > > INSTALL_DIR="$HOME/unstable" > > MONO_PATH="/home/exalted/build/f-spot/lib/dpap-sharp/dpap-client:/home/exalted/build/f-spot/lib/dpap-sharp/dpap-server:/home/exalted/build/f-spot/lib/unique-sharp/unique:/home/exalted/build/f-spot/lib/gnome-keyring-sharp:/home/exalted/build/f-spot/lib/libgphoto2-sharp:/home/exalted/build/f-spot/lib/gtk-sharp-beans:/home/exalted/build/f-spot/lib/GKeyFile:/home/exalted/build/f-spot/lib/semweb:/home/exalted/build/f-spot/lib/gio-sharp/gio:/home/exalted/build/f-spot/src:/home/exalted/build/f-spot/extensions/Services/DBusService:/home/exalted/build/f-spot/extensions/Services/BeagleService:/home/exalted/build/f-spot/extensions/Exporters/TabbloExport:/home/exalted/build/f-spot/extensions/Exporters/TabbloExport/Tabblo:/home/exalted/build/f-spot/extensions/Exporters/SmugMugExport:/home/exalted/build/f-spot/extensions/Exporters/SmugMugExport/SmugMugNet:/home/exalted/build/f-spot/extensions/Exporters/FlickrExport:/home/exalted/build/f-spot/extensions/Exporters/FlickrExport/FlickrNet:/home/exalted/build/f-spot/extensions/Exporters/FacebookExport:/home/exalted/build/f-spot/extensions/Exporters/CDExport:/home/exalted/build/f-spot/extensions/Exporters/PicasaWebExport/google-sharp:/home/exalted/build/f-spot/extensions/Exporters/PicasaWebExport:/home/exalted/build/f-spot/extensions/Exporters/FolderExport:/home/exalted/build/f-spot/extensions/Exporters/ZipExport:/home/exalted/build/f-spot/extensions/Exporters/GalleryExport:/home/exalted/build/f-spot/extensions/Tools/HashJob:/home/exalted/build/f-spot/extensions/Tools/LiveWebGallery:/home/exalted/build/f-spot/extensions/Tools/ChangePhotoPath:/home/exalted/build/f-spot/extensions/Tools/MergeDb:/home/exalted/build/f-spot/extensions/Tools/DevelopInUFraw:/home/exalted/build/f-spot/extensions/Tools/RawPlusJpeg:/home/exalted/build/f-spot/extensions/Tools/ScreensaverConfig:/home/exalted/build/f-spot/extensions/Transitions/CoverTransition" > > -- > > > > Doing: > > > > -- > > $ cd "$DEV_DIRECTORY"; > > $git clone git://git.gnome.org/f-spot; > > $cp -a "$DEV_DIR/$NAME" "$BUILD_DIR/$NAME"; > > $cd "$BUILD_DIR/$NAME"; > > $./autogen.sh --prefix="$INSTALL_DIR/$NAME" --disable-scrollkeeper; > > $make all; > > > > (Output goes like this: http://pastebin.com/m25a3c5cb) > > > > $mdb src/f-spot.exe > > > > (Here inside mdb session) > > > > $run -basedir /tmp/somedir -photodir /tmp/somedir > > -- > > > > I get: > > > > -- > > Starting program: src/f-spot.exe -basedir /tmp/somedir -photodir > > /tmp/somedir > > Cannot read symbol file > > `/usr/lib/mono/gac/glib-sharp/2.12.0.0__35e10195dab3c99f/glib-sharp.dll.mdb': > > Could not find file > > "/usr/lib/mono/gac/glib-sharp/2.12.0.0__35e10195dab3c99f/glib-sharp.dll.mdb". > > Cannot read symbol file > > `/usr/lib/mono/gac/Mono.Addins.Setup/0.4.0.0__0738eb9f132ed756/Mono.Addins.Setup.dll.mdb': > > Could not find file > > "/usr/lib/mono/gac/Mono.Addins.Setup/0.4.0.0__0738eb9f132ed756/Mono.Addins.Setup.dll.mdb". > > Cannot read symbol file > > `/usr/lib/mono/gac/gtk-sharp/2.12.0.0__35e10195dab3c99f/gtk-sharp.dll.mdb': > > Could not find file > > "/usr/lib/mono/gac/gtk-sharp/2.12.0.0__35e10195dab3c99f/gtk-sharp.dll.mdb". > > Cannot read symbol file > > `/usr/lib/mono/gac/atk-sharp/2.12.0.0__35e10195dab3c99f/atk-sharp.dll.mdb':
Re: How to debug F-Spot
It seems as if you miss .mdb (debug symbols), which is why it can't make a trace. On Mon, 2009-11-30 at 16:59 +0100, Ali Servet Donmez wrote: > Hi, > > simply trying to debug f-spot using mdb, but no luck there. > > Having: > > -- > NAME="f-spot" > > DEV_DIR="$HOME/dev" > > BUILD_DIR="$HOME/build" > > INSTALL_DIR="$HOME/unstable" > MONO_PATH="/home/exalted/build/f-spot/lib/dpap-sharp/dpap-client:/home/exalted/build/f-spot/lib/dpap-sharp/dpap-server:/home/exalted/build/f-spot/lib/unique-sharp/unique:/home/exalted/build/f-spot/lib/gnome-keyring-sharp:/home/exalted/build/f-spot/lib/libgphoto2-sharp:/home/exalted/build/f-spot/lib/gtk-sharp-beans:/home/exalted/build/f-spot/lib/GKeyFile:/home/exalted/build/f-spot/lib/semweb:/home/exalted/build/f-spot/lib/gio-sharp/gio:/home/exalted/build/f-spot/src:/home/exalted/build/f-spot/extensions/Services/DBusService:/home/exalted/build/f-spot/extensions/Services/BeagleService:/home/exalted/build/f-spot/extensions/Exporters/TabbloExport:/home/exalted/build/f-spot/extensions/Exporters/TabbloExport/Tabblo:/home/exalted/build/f-spot/extensions/Exporters/SmugMugExport:/home/exalted/build/f-spot/extensions/Exporters/SmugMugExport/SmugMugNet:/home/exalted/build/f-spot/extensions/Exporters/FlickrExport:/home/exalted/build/f-spot/extensions/Exporters/FlickrExport/FlickrNet:/h ome/exalted/build/f-spot/extensions/Exporters/FacebookExport:/home/exalted/build/f-spot/extensions/Exporters/CDExport:/home/exalted/build/f-spot/extensions/Exporters/PicasaWebExport/google-sharp:/home/exalted/build/f-spot/extensions/Exporters/PicasaWebExport:/home/exalted/build/f-spot/extensions/Exporters/FolderExport:/home/exalted/build/f-spot/extensions/Exporters/ZipExport:/home/exalted/build/f-spot/extensions/Exporters/GalleryExport:/home/exalted/build/f-spot/extensions/Tools/HashJob:/home/exalted/build/f-spot/extensions/Tools/LiveWebGallery:/home/exalted/build/f-spot/extensions/Tools/ChangePhotoPath:/home/exalted/build/f-spot/extensions/Tools/MergeDb:/home/exalted/build/f-spot/extensions/Tools/DevelopInUFraw:/home/exalted/build/f-spot/extensions/Tools/RawPlusJpeg:/home/exalted/build/f-spot/extensions/Tools/ScreensaverConfig:/home/exalted/build/f-spot/extensions/Transitions/CoverTransition" > -- > > Doing: > > -- > $ cd "$DEV_DIRECTORY"; > $git clone git://git.gnome.org/f-spot; > $cp -a "$DEV_DIR/$NAME" "$BUILD_DIR/$NAME"; > $cd "$BUILD_DIR/$NAME"; > $./autogen.sh --prefix="$INSTALL_DIR/$NAME" --disable-scrollkeeper; > $make all; > > (Output goes like this: http://pastebin.com/m25a3c5cb) > > $mdb src/f-spot.exe > > (Here inside mdb session) > > $run -basedir /tmp/somedir -photodir /tmp/somedir > -- > > I get: > > -- > Starting program: src/f-spot.exe -basedir /tmp/somedir -photodir /tmp/somedir > Cannot read symbol file > `/usr/lib/mono/gac/glib-sharp/2.12.0.0__35e10195dab3c99f/glib-sharp.dll.mdb': > Could not find file > "/usr/lib/mono/gac/glib-sharp/2.12.0.0__35e10195dab3c99f/glib-sharp.dll.mdb". > Cannot read symbol file > `/usr/lib/mono/gac/Mono.Addins.Setup/0.4.0.0__0738eb9f132ed756/Mono.Addins.Setup.dll.mdb': > Could not find file > "/usr/lib/mono/gac/Mono.Addins.Setup/0.4.0.0__0738eb9f132ed756/Mono.Addins.Setup.dll.mdb". > Cannot read symbol file > `/usr/lib/mono/gac/gtk-sharp/2.12.0.0__35e10195dab3c99f/gtk-sharp.dll.mdb': > Could not find file > "/usr/lib/mono/gac/gtk-sharp/2.12.0.0__35e10195dab3c99f/gtk-sharp.dll.mdb". > Cannot read symbol file > `/usr/lib/mono/gac/atk-sharp/2.12.0.0__35e10195dab3c99f/atk-sharp.dll.mdb': > Could not find file > "/usr/lib/mono/gac/atk-sharp/2.12.0.0__35e10195dab3c99f/atk-sharp.dll.mdb". > Cannot read symbol file > `/usr/lib/mono/gac/Mono.Addins/0.4.0.0__0738eb9f132ed756/Mono.Addins.dll.mdb': > Could not find file > "/usr/lib/mono/gac/Mono.Addins/0.4.0.0__0738eb9f132ed756/Mono.Addins.dll.mdb". > Cannot read symbol file > `/usr/lib/mono/gac/gnome-vfs-sharp/2.24.0.0__35e10195dab3c99f/gnome-vfs-sharp.dll.mdb': > Could not find file > "/usr/lib/mono/gac/gnome-vfs-sharp/2.24.0.0__35e10195dab3c99f/gnome-vfs-sharp.dll.mdb". > Cannot read symbol file > `/usr/lib/mono/gac/gdk-sharp/2.12.0.0__35e10195dab3c99f/gdk-sharp.dll.mdb': > Could not find file > "/usr/lib/mono/gac/gdk-sharp/2.12.0.0__35e10195dab3c99f/gdk-sharp.dll.mdb". > Thread @1 stopped at #0: 0x41ce94a0 in
