Make sure you have installed 'gdb', the GNU Debugger.
-Run Midori as 'gdb _build_/default/midori/midori'.
+Run Midori as 'gdb _build/default/midori/midori'.
Inside gdb, type 'run'.
If the problem is a warning and not a crash, try this:
-'G_DEBUG=all gdb _build_/default/midori/midori'
+'G_DEBUG=all gdb _build/default/midori/midori'
If you are interested in HTTP communication, try this:
-'MIDORI_SOUP_DEBUG=2 _build_/default/midori/midori'
+'MIDORI_SOUP_DEBUG=2 _build/default/midori/midori'
Where '2' can be a level between 0 and 3.
If you are interested in (non-) touchscreen behaviour, try this:
-'MIDORI_TOUCHSCREEN=1 _build_/default/midori/midori', or
+'MIDORI_TOUCHSCREEN=1 _build/default/midori/midori', or
-'MIDORI_TOUCHSCREEN=0 _build_/default/midori/midori'
+'MIDORI_TOUCHSCREEN=0 _build/default/midori/midori'
If you want to "dry run" without WebKitGTK+ rendering, try this:
-'MIDORI_UNARMED=1 _build_/default/midori/midori'
+'MIDORI_UNARMED=1 _build/default/midori/midori'
To disable Netscape plugins, use MOZ_PLUGIN_PATH=/.
To debug extensions you can specify the path:
-'export MIDORI_EXTENSION_PATH=_build_/default/extensions'
+'export MIDORI_EXTENSION_PATH=_build/default/extensions'
For further information a tutorial for gdb and
reading up on how you can install debugging
distclean:
@$WAF distclean
- @-rm -rf _build_
+ @-rm -rf _build
@-rm -f Makefile
check:
import os
import Utils
+blddir = '_build' # recognized by ack
+
for module in ('midori', 'katze'):
try:
- if not os.access ('_build_', os.F_OK):
- Utils.check_dir ('_build_')
- if not os.access ('_build_/docs', os.F_OK):
- Utils.check_dir ('_build_/docs')
- if not os.access ('_build_/docs/api', os.F_OK):
- Utils.check_dir ('_build_/docs/api')
+ if not os.access (blddir, os.F_OK):
+ Utils.check_dir (blddir)
+ if not os.access (blddir + '/docs', os.F_OK):
+ Utils.check_dir (blddir + '/docs')
+ if not os.access (blddir + '/docs/api', os.F_OK):
+ Utils.check_dir (blddir + '/docs/api')
subprocess.call (['gtkdoc-scan', '--module=' + module,
- '--source-dir=' + module, '--output-dir=_build_/docs/api/' + module,
+ '--source-dir=' + module, '--output-dir=' + blddir + '/docs/api/' + module,
'--rebuild-sections', '--rebuild-types'])
- os.chdir ('_build_/docs/api/' + module)
+ os.chdir (blddir + '/docs/api/' + module)
subprocess.call (['gtkdoc-mktmpl', '--module=' + module,
'--output-dir=.' + module])
subprocess.call (['gtkdoc-mkdb', '--module=' + module,
obj = bld.new_task_gen ('cc', 'program')
obj.target = 'test-' + target
obj.includes = '.. ../midori ../panels'
- obj.cflags = ['-DEXTENSION_PATH="' + os.path.abspath ('_build_/default/extensions') + '"']
+ obj.cflags = ['-DEXTENSION_PATH="' + os.path.abspath ('_build/default/extensions') + '"']
obj.source = source
obj.vapi_dirs = '../midori'
obj.packages = 'glib-2.0 gio-2.0 gtk+-2.0 libsoup-2.4 webkit-1.0 midori'
#-----------------------------------------------------------------------------
-BIN=_build_/default/midori/midori
+BIN=_build/default/midori/midori
BASENAME=`basename $0`
ulimit -c unlimited