Hi, Jan, try to compile yade, entering to the directory with the source. And then start yade with --debug key.
Anton 2011/4/7 Jan Stránský <[email protected]>: > > Hello, > > I would like to know how to run Yade with debugger. I tried > > $ yade-trunk --debug somescript.py > > with result > > Traceback (most recent call last): > File "/usr/local/bin/yade-trunk", line 59, in <module> > raise RuntimeError('Debug build not available (run without --debug, or try > --debug --rebuild)') > > so I tried > > $ yade-trunk --debug --rebuild somescript.py > > with result > > Rebuilding yade using scons -Q -C /home/jan/yade profile=default! debug=1 > execCheck=/usr/local/bin/yade-trunk > scons: Entering directory `/home/jan/yade' > @@@ Using profile default (scons.profile-default) @@@ > Eigen 2 math library will be used > Yade version is `bzr2807' (bzr2807), installed files will be suffixed with > `-bzr2807'. > All intermediary files will be in `/home/jan/build-bzr2807/dbg'. > RuntimeError: execCheck option (/usr/local/bin/yade-trunk) does not match > what is about to be installed (/usr/local/bin/yade-bzr2807): > File "/home/jan/yade/SConstruct", line 565: > env.SConscript(dirs=['.'],variant_dir=buildDir,duplicate=0) > File "/usr/lib/scons/SCons/Script/SConscript.py", line 551: > return _SConscript(self.fs, *files, **subst_kw) > File "/usr/lib/scons/SCons/Script/SConscript.py", line 260: > exec _file_ in call_stack[-1].globals > File "/home/jan/yade/SConscript", line 5: > SConscript(dirs=['core','lib','gui','py'],duplicate=0) > File "/usr/lib/scons/SCons/Script/SConscript.py", line 614: > return method(*args, **kw) > File "/usr/lib/scons/SCons/Script/SConscript.py", line 551: > return _SConscript(self.fs, *files, **subst_kw) > File "/usr/lib/scons/SCons/Script/SConscript.py", line 260: > exec _file_ in call_stack[-1].globals > File "/home/jan/yade/core/SConscript", line 15: > raise RuntimeError('execCheck option (%s) does not match what is about to > be installed (%s)'%(env['execCheck'],env.subst(pyMain))) > Traceback (most recent call last): > File "/usr/local/bin/yade-trunk", line 51, in <module> > if subprocess.call(cmd): raise RuntimeError('Error rebuilding Yade > (--rebuild).') > RuntimeError: Error rebuilding Yade (--rebuild). > > In my scons profile I have debug=1. Does somebody know what am I doing wrong? > Thanks in advance > Jan > > _______________________________________________ > Mailing list: https://launchpad.net/~yade-dev > Post to : [email protected] > Unsubscribe : https://launchpad.net/~yade-dev > More help : https://help.launchpad.net/ListHelp > _______________________________________________ Mailing list: https://launchpad.net/~yade-dev Post to : [email protected] Unsubscribe : https://launchpad.net/~yade-dev More help : https://help.launchpad.net/ListHelp

