![]() Press Apply / OK to ensure the changes are savedģ Create a Python script/plugin for XBMC in Eclipse 3.1 Create a new PyDev Project.From the 'Predefined' tab, click the new button and select the folder you created in the step above.Open Eclipse and select Window > Preferences > PyDev > Interpreter - Python.Select the add-on to run it (the addon should run and close quickly).Set the location to save the help docs to and save the new settings (This can be anywhere on your system - we'll configure it in Eclipse later).Open the context menu for newly installed addon and select 'Add-on Settings'.Navigate to the newly installed Addon (eg.System > Settings > Addons > Program Add-Ons) Download the 'PyDev Predefined Completions Creator' Addon (eg.In order to overcome this, you can run the PyDev Predefined Completions Creator addon and setup Eclipse to reference this file: The standard Python completions are enabled by default when using these instructions, but the standard XBMC components will not be recognized appropriately (xbmc, xbmcgui, xbmcplugin, etc). Many developers are accustom to using predefined completions when writing their code (eg. Pydev then Debug you can define here the port and the timeout you wantĢ.3.5 Setting up Predefined Completions (optional).If you do not want to use the default port (usually 5678) you can set it up: You should see 2 new buttons in your toolbar:Ģ.3.4 Setting the remote debugger port (optional).In the menu bar select Window -> Customize perspective., a window Customize Perspective - PyDev will open.Use this view for your developments in Python for XBMCĢ.3.3 Add Pydev Start/Stop debug server buttons Select Pydev then OK, a PyDev View Button should be now available on the top right corner.On the top right corner click on the View button on select Others.This will help in order to have Python code completion (except for XBMC modules) After that you should see something like this: In the new prompt, enter the Interpreter Name: Python, and Browse for your Python Interpreter 2.4 python.exe file and select it. ![]() Check PyDev box and follow the steps in order to install PyDevĢ.3 Configure Pydev and Eclipse 2.3.1 Add Python Interpreter Path.Click on the Add button and add Pydev website as a source:.Python interpreter 2.4 (use the same version as XBMC or version Install New Software.Any platform able to run Eclipse IDE (Windows 32bit-64bit, Mac Carbon 32bit-64bit, Mac Cocoa 32bit-64bit, Linux 32bit-64bit): it is the platform from where you will run the debugger IDE.3.5 Add to your python script the code for remote debug.3.4.4.2 Option 4: (Suggested for Linux users).3.4.4.1 Option 3: (Suggested for Windows users).3.4.4 Copy pysrc in XBMC Python install.3.4.3 Choose how XBMC will refer to Pydev debugging module. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |