From 490f52a6b8ef72a04503bd25a9f64915122e49d6 Mon Sep 17 00:00:00 2001 From: ThomasG77 Date: Mon, 12 Dec 2011 13:14:55 -0800 Subject: [PATCH] Updated DebuggingMapnik (markdown) --- DebuggingMapnik.md | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/DebuggingMapnik.md b/DebuggingMapnik.md index 0826496..b2245b0 100644 --- a/DebuggingMapnik.md +++ b/DebuggingMapnik.md @@ -13,15 +13,17 @@ Currently I have these questions: ## Eclipse Here I try to describe my setup. I'm sure there are better ways but this works for me: - * Checkout the newest trunk version of the repository: `svn checkout http://svn.mapnik.org/trunk mapnik_trunk` - This has the advantages that - * you always have the newest version (`svn update`) - * you can quickly add test code and remove it again (`svn revert`) - * you can easily create patches (`svn diff`) - * Compile it as described in the INSTALL file provided in the root directory of the checkout. I have the following variables in my `config.py`: +* Checkout the newest trunk version of the repository: `svn checkout http://svn.mapnik.org/trunk mapnik_trunk` - #!python +This has the advantages that + +* you always have the newest version (`svn update`) +* you can quickly add test code and remove it again (`svn revert`) +* you can easily create patches (`svn diff`) +* Compile it as described in the INSTALL file provided in the root directory of the checkout. I have the following variables in my `config.py`: + +```python DEBUG = True XML_DEBUG = True INPUT_PLUGINS = 'gdal,ogr,osm,postgis,raster,shape,sqlite' @@ -31,15 +33,16 @@ Here I try to describe my setup. I'm sure there are better ways but this works f BOOST_LIBS = '/usr/lib' BINDINGS = 'all' DEMO = True - * Download and install the [Eclipse IDE for C/C++ Developers (79 MB)](http://www.eclipse.org/downloads/) - * Create a new Makefile-C++-Project using the existing `mapnik_trunk` path where you have checked out the working copy. - * Create a debug configuration e.g. specifying the c++ demo application `rundemo` in `demo/c++`. - * You can got through the program now step by step and make breakpoints. In the default behavior, Eclipse tries (and fails) to compile the project itself and ask to start anyway. Just say yes. - * If you change a file, recompile the project from the command line by just typing `python scons/scons.py`. - * It is possible (but not necessary) to fine-tune Eclipse so that it does not try to build the project by itself and that is uses scons to do successfully do so. +``` +* Download and install the [Eclipse IDE for C/C++ Developers (79 MB)](http://www.eclipse.org/downloads/) +* Create a new Makefile-C++-Project using the existing `mapnik_trunk` path where you have checked out the working copy. +* Create a debug configuration e.g. specifying the c++ demo application `rundemo` in `demo/c++`. +* You can got through the program now step by step and make breakpoints. In the default behavior, Eclipse tries (and fails) to compile the project itself and ask to start anyway. Just say yes. +* If you change a file, recompile the project from the command line by just typing `python scons/scons.py`. +* It is possible (but not necessary) to fine-tune Eclipse so that it does not try to build the project by itself and that is uses scons to do successfully do so. ## References - * http://wiki.python.org/moin/DebuggingWithGdb - * http://www.boost.org/libs/python/doc/v2/faq.html#debugging \ No newline at end of file +* http://wiki.python.org/moin/DebuggingWithGdb +* http://www.boost.org/libs/python/doc/v2/faq.html#debugging \ No newline at end of file