The Python Sample Menu Command contains commented code that enables PyDev debugger: Include an import to the PyDev remote debugger in your script.Note You may need to change that to the place where you have installed the Aptana Studio application. Win example: D:\Aptana Studio 3\plugins\_2.012902\pysrc.Vectorworks menu Tools -> Plug-ins -> Script Options : add an environment path to the needed Folder location:.Set up in Vectorworks the correct Python environment path: The way the debug works is to use the remote debugger of Aptana. See Creating a Project in the pdev documentation for more infos. Create a new python Project: file > new > project > PyDev > PyDev project.Import an existing Project (for example the Python Sample Menu Command): File -> New -> Project.Now, you can create or import a Project: a directory containing all files needed for a plug-in, for example the folder Python Sample Menu Command.The list will be visible here: Preferences > General > Startup and Shutdown > Workspaces Also take care to select a directory with proper read/write user rights, for example within the folder "Documents". If this path is visible by Vectorworks, it will make it launch very slowly (from traversing all these files and sub-folders). This is VERY important for the reason that a workspace directory will contain a ton of files that start with ‘.’. When you need to manually change the path: File > Switch Workspace > Other.: choose a directory outside any Vectorworks path.When prompted at start: choose a directory outside any Vectorworks path.Depending on Aptana's defaults, the application will prompt you with a workspace choice at every launch: Specify a Workspace: the directory where you store your Projects, in our case the plug-in folders with the code.See Configure Interpreter in the pdev documentation for more infos. We wont actually use it, but will let Aptana use it to syntax check. select the Python 3.3 you just installed in step 1.Preferences > PyDev > Interpreters > Python Interpreter.Only the first time, you must setup the Python interpreter (the above mentioned pydev plug-in): This is technically not necessary, but I prefer to have it so Aptana could report syntax errors while editing. Install Python 3.3 runtime ( download) I’ll hook Aptana to this version later.It includes PyDev for that which, by itself, is a plug-in to do python in Eclipse.Īnyway, you can remote debug, and here is how: Less code is needed to transform common data types, Aptana said.I have experimented with Aptana Studio which is a version of Eclipse.Īptana is an IDE that allows you to manage Python projects and can debug remote python engines like Vectorworks. Jaxer supports JSON and XML (Ecmascript for XML) and provides APIs for delivering pages or data via RESTful interfaces. In addition, RESTful data services can be developed for consumption by AJAX applications or widgets typical of Facebook or OpenSocial applications. Developers can expose JavaScript functions running on the server to a Web page and execute those functions as if they were part of a Web page. AJAX communications is simplified as well. AJAX libraries such as jQuery, Dojo, and others can run on the server.Īn HTML DOM is enabled during page execution so AJAX libraries or JavaScript DOM APIs can be used to modify and personalize Web pages before being served to the browser.Ĭlient-side and server-side code can be used in the same HTML page. Server sessions, image manipulation, and other capabilities typical of application servers are provided using the same language as Web pages. The Jaxer application framework enables developers to use JavaScript on the server to interact with databases, file systems, and networks.
0 Comments
Leave a Reply. |