RE: [Pydev-code] Released 0.5.3
Brought to you by:
fabioz
From: Fabio Z. <fa...@in...> - 2004-07-29 13:11:27
|
Hi Aleks, You know, using the debugger in my machine is also very slow (I usually = use python's pdb module because of that)... But I would really like to use = our plugin's debugger, so, I would like to know if you have any ideas on = were are the slow parts of the code (I only gave a brief look at the code, = and really couldn't figure it out...) I would also would like to know if the variables that appear on the = debugger are gotten only when requested or are gotten when the breakpoint stops (maybe this could be an improvement, because this is a point that I = think can really slow things down). As a simple example you could run a new style class and go on its = __class__ atribute almost forever... Getting all the globals could also get a lot = of time... Well, as I said, I'm just trying to guess. Well, if have no time and cannot take a look, I can give it a try if you give me some directions (although I don't know when I'll be able to do = it either)... :-( Fabio Zadrozny ------------------------------------------------------ Software Developer ESSS - Engineering Simulation and Scientific Software www.esss.com.br -----Original Message----- From: pyd...@li... [mailto:pyd...@li...] On Behalf Of Aleks Totic (Boston) Sent: ter=E7a-feira, 27 de julho de 2004 11:31 To: pyd...@li... Subject: Re: [Pydev-code] Released 0.5.3 I invoke CPython as a part of the debugging process in org.python.pydev.debug.launching. You probably want to do something = similar, but with using Runtime.exec and capturing your own stdio. Doing autocompletion by launching CPython can be heavyweight for some = users. I've just fixed a bug where someone was complaining about a 5 second = timeout when launching CPython through debugger as too low. His machine took at least 10 secs to launch python. Aleks Dana Moore wrote: >Ecellent, >I saw tha the project got good press as well: >http://www-106.ibm.com/developerworks/library/os-ecant/?ca=3Ddrs-tp2604 > >In addition, I got a slot to talk about it at OsCon 2004 > >I never got a response back from my query on how to invoke CPython on a = >file which is in the plugin path. If I get a reposnse to that, then=20 >finishing the autocompletion is a 30-60 minute job as I have all the=20 >rest of the stuff coded (and doesn't require Jython any longer :-) FYI=20 >(or if you can figure out an answer), my question to the eclipse-dev NG = >was: ># ---------------------------------------------- >HI all, >I haven't seen a good example of this in discussions or tutorials=20 >(perhaps because it's an uncommon useage), but here's what I would like = >to do: >1. I am working on completion proposals for a pythonic Eclipse editor. >2. I have a python code introspector writen in python (inspector.py)=20 >that emits potential completions to standard out; 3. On encountering=20 >the autoactivation characters ( dot or left paren ) I would like to=20 >getRuntime().exec() the python file which is in the plugin's path. > >I can figure out where the python interpreter is on the user's system,=20 >I know how to wire the content assitant thanks to the very excellent=20 >article "Equipping SWT applications with content assistants" at=20 >http://www-106.ibm.com/developerworks/opensource/library/os-ecca/?ca=3Dd= g >r-lnx >w09SWTContentAssist%22 . >I can do the exec, I can return (but exec of _what_ exactly is the >problem) > >What I don't know how to do precisely is how I: >A. Configure Eclipse to know it has this resource and build the=20 >resource with the Plugin B. Get a runtime handle to the file relative=20 >to its containment in the Plugin. >I sort of assume I should do something similar to the way ANT uses the=20 >build.xml attached to a project, but thus far my software spelunking=20 >has been unproductive. Any help will be great appreciated and will=20 >result in a more full featured Python IDE for Eclipse #=20 >----------------------------- > >Best to all, > > >--- Aleks Totic <a...@to...> wrote: > =20 > >>Hi guys, >>I've just released 0.5.3. It has Fabio's changes (love that smart=20 >>backspace), and some bug fixes in the debugger. >> >>Aleks >> =20 >> ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java = Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=3D4721&alloc_id=3D10040&op=3Dclick _______________________________________________ Pydev-code mailing list Pyd...@li... https://lists.sourceforge.net/lists/listinfo/pydev-code |