Updated DebuggingMapnik (markdown)
parent
7017f1fcc6
commit
490f52a6b8
1 changed files with 18 additions and 15 deletions
|
@ -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
|
||||
* http://wiki.python.org/moin/DebuggingWithGdb
|
||||
* http://www.boost.org/libs/python/doc/v2/faq.html#debugging
|
Loading…
Reference in a new issue