Archive talk:Debug Python Scripts with Eclipse

From Official Kodi Wiki
Revision as of 01:57, 26 July 2020 by Karellen (talk | contribs) (Karellen moved page HOW-TO talk:Debug Python Scripts with Eclipse to Archive talk:Debug Python Scripts with Eclipse without leaving a redirect: Outdated)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Thanks for the page. It was very useful for me in the beginning.

Just one comment. For the the pysrc code that came with Eclipse-pydev was not good since XBMC some times passes files to the module with internal naming paths (special://... or Q:/...) and the module would not find them making it impossible to insert breakpoints in such files.

I did a simple modification to the file pydevd_file_utils.py consisting on adding a line to each procedure that had a filename parameter (4 procedures in total). I added a line like


def _NormFile(filename):
    filename = xbmc.translatePath(filename)
    try:
...

of course you need a

import xbmc

in the begening of the module...

I just wanted to note it in case is useful for someone else.

By the way, I'm instally a new devenv based on Eclipse 3.6 and latest versions for pydev. If I get it working I'll leave here the links and steps...

Again,

Thanks.

PS. Sorry but I'm not good with editing wiki... I let that to someone more experienced.

File locations

found dir for Lib: Library directory used by python. Here can new packages or modules be installed by the user.

/usr/share/xbmc/system/python/

and

/home/meeeee/.eclipse/org.eclipse.platform_3.7.0_155965261/plugins/org.python.pydev_2.7.1.2012100913/pysrc

personal folder:

/home/meeeee/.xbmc

on my linux (ubuntu) pc. Will add that occasionally in the wiki. --Raspi177 06:08, 26 November 2012 (EST)