Here's to the user who pointed out that you can debug scons using eclipse
if you use the extension-less python script as your entry point. Thank
god.
Here's my short crib sheet for this on windows, based on his:
- Add File Associations for
SConstruct
andSConscript
and set them to pydev editor. - Your project needs to have the pydev nature, so make a new python project and import folders from scons and your toolpath with appropriate names instead of copying anything.
- You can link files in eclipse 3.2, so do that with
c:\pythonXX\scripts\scons
and rename it asscons.py
- Set some breakpoints in your
SConstruct
orSConscript
- Fixup your project's
PYTHONPATH
to include thec:\pythonXX\scons-X.XX
folder. - Right-clicked on 'scons.py', Debug As ... -> Python Run
env._dict
which is full of your construction variables and builders, or shudder in awe as you still hit the *** maximum recursion depth reached
without throwing an exception with a line number that you can jump to.
Leave a comment