c++ - Debugging Python when both PyDev and CDT natures in same Eclipse project -
eclipse 4.5 (mars) / windows 7
i have eclipse c/c++ makefile project has both python , c/c++ code. source code checked-out svn repository. build environment via msys shell using project specific configuration script create makefiles in top/sub-directories , 'make', 'make install' build.
my .project file has both pydev , cdt natures configured.
i can switch between pydev , c/c++ perspectives , browse code including right-clicking on symbol , 'open declaration'.
the 'debug' perspective appears specific c/c++ perspective.
do have experience configuring eclipse project allows debug both python , c/c++ code?
after 'googling' around internet, here appears working particular situation:
- create c/c++ project (empty makefile project). produces following 3 files in top-level local svn check-out directory:
.settings .cproject .project
note: keep eclipse workspace separate eclipse project.
- create separate python project outside of local svn check-out directory.
note: eclipse python project in eclipse workspace.
this creates following 2 files:
.pydevproject .project
copy .pydevproject directory containing .settings, .cproject, , .project files.
copy python 'nature' elements python .project file cdt .project file.
restart eclipse if had been running while editing dot (.) files.
finally, "c/c++ perspective". in 'project explorer" window, pull down 'view menu".
select 'customize view...'. select 'content' tab. uncheck 'pydev navigator content' option.
Comments
Post a Comment