we got eclipse/pydev remote debugging working with maya, but after using it we end up with the partially dead maya window that always seems to crop up when diverting the main thread in maya. here's a description written by my co-worker:
"When the process has terminated, the main window loses its interactivity; you can create a sphere through the script editor, select it with your mouse and manipulate it with editor commands, but the main window is dead from the neck down - no hotkeys, no spacebar- menu call, etc. We see this same behavior when we launch PyQt4 or wx UIs. With pyQt we've loaded the pumpthread.py file, but are still seeing the same behavior once the process has completed. After the main qt UI has successfully completed, the qt ui closes and Maya is in the same limbo as described in the above paragraph. We have some secondary functionality, but the main window is unreachable by the user." this same threading problem is killing many great possibilities. pyQt windows, iPython console, and remote debugging, are all crippled by it. it seems worse on osx than other platforms. does anyone have any more insight into this? on a different note, how is the svn integration in Wing? i'm growing pretty frustrated with svn integration in eclipse, but i'm not sure if the problems are due to svn itself or the subversive/subclipse plugins. -chad On Nov 3, 2008, at 2:14 AM, Olivier Renouard wrote: > Should look like this, an icon on the debug perspective : > > http://www.fabioz.com/pydev/manual_adv_remote_debugger.html > > But you need PyDev + PyDev extensions installed in eclipse (it's > specific to the extensions, not in base PyDev I think) > > Olivier > > > Sylvain Berger wrote: >> I can't set it up today, on monday next week i will set it up at >> work and provided feedback on how it went. >> >> 2008/10/31 Ofer Koren <[EMAIL PROTECTED]> >> okay then now translate! :) >> >> One thing though - I couldn't find this PyDev Debug Server in >> Eclipse - am I using an old version? how do I install this? >> >> >> Thanks, >> >> >> Ofer >> >> >> From: [email protected] >> [mailto:[EMAIL PROTECTED] On Behalf Of Sylvain >> Berger >> Sent: Friday, October 31, 2008 12:05 PM >> >> To: [email protected] >> Subject: [Maya-Python Club:1285] Re: Syntax Highlighting in Wing IDE >> >> >> sweet! yes I do speak french, so the explanation provided is >> perfect for me. >> >> Thanks >> >> On Fri, Oct 31, 2008 at 10:31 AM, Olivier Renouard >> <[EMAIL PROTECTED]> wrote: >> >> Hi Sylvain, >> >> If you read French you can use this explanation I made for a >> coworker. If not I'll try to make an english verison when I get >> the chance : >> >> On peut egalement attacher une session de debug a un processus >> deja lance. Donc entrer en debug sur un Maya ouvert sans avoir >> besoin de le relancer, ceci a l'aide du serveur de debug (remote >> debug server). L'utilisation en est detaillee dans la doc de >> PyDev : http://www.fabioz.com/pydev/manual_adv_remote_debugger.html >> >> Menu: >> >> Window/Open Perspective/Debug/PyDev/Start Debug Server >> >> Rapidement le principe est : >> >> D'abord lancer depuis l'interface de debug de PyDev le serveur qui >> va "ecouter" sur un port precis. >> Ensuite dans maya, lancer la commande Python qui va etablir la >> communication avec le "remote debug server" : >> import pydevd >> settrace(stdoutToServer=True, stderrToServer=True, port=5678) >> >> A voir dans le module Python sys et en particulier sys.stdin, >> sys.stdout, sys.stderr sur comment il est possible de rediriger >> les entrees et sortie d'un processus. Maya a son lancement en mode >> interractif source "maya.app.gui" depuis le package maya et >> assigne leurs valeurs ainsi : >> >> # Replace sys.stdin with a GUI version that will request input >> from the user >> sys.stdin = maya.app.baseUI.StandardInput() >> # Replace sys.stdout and sys.stderr with versions that can output >> to Maya's >> # GUI >> sys.stdout = maya.utils.Output() >> sys.stderr = maya.utils.Output( error=1 ) >> >> Autant on recupere bien les sorties stdout et stderr de Maya dans >> la console de l'interface de debug de PyDev, autant je n'ai pas >> trouve comment rediriger une entree vers la zone de saisie du >> script editor Maya. Si quelqu'un le sait info bienvenue. >> >> <mime-attachment.jpeg> >> >> <mime-attachment.png> >> >> >> >> Sylvain Berger wrote: >> >> Hi Shawn, I am using Eclipse too, and i am curious to know how to >> setup eclipse and Maya to have the debug working in maya... could >> you explain a bit more the setup required? >> >> Thanks >> >> On Fri, Oct 31, 2008 at 5:23 AM, Olivier Renouard >> <[EMAIL PROTECTED]> wrote: >> >> Hi, >> >> I've been using Eclipse and the PyDev extension, that allows >> remote debug in Maya as well. Note that there is a MEL syntax >> plugin for Eclipse (on Highend3d). >> >> How do you people find Eclipse as compared to Wings ? Eclipse can >> be a bit sluggish, is Wings lighter / faster ? One big thing for >> me was to be able to use Eclipse as a C/C++ IDE as well, does >> Wings allow that ? >> >> Olivier >> >> >> >> Shawn Patapoff wrote: >> >> Remote Debugging? Would you mind explaining what this is a bit? >> I'll rtfm in the meantime. >> >> >> Cheers >> >> On Thu, Oct 30, 2008 at 3:29 PM, Ben Chess >> <[EMAIL PROTECTED]> wrote: >> >> Seconded. You can use the remote debugging features of Wing >> inside Maya, and it will change your life. >> >> >> From: [email protected] >> [mailto:[EMAIL PROTECTED] On Behalf Of Shawn >> Patapoff >> Sent: Thursday, October 30, 2008 3:28 PM >> To: [email protected] >> Subject: [Maya-Python Club:1276] Re: Syntax Highlighting in Wing IDE >> >> >> I've managed to get Maya to Wing communication working so I can >> import and reload scripts from Wing. I can also source *.mel from >> Wing as well as python maya.standalone. I can share my workflow >> if anyone cares. >> >> >> Wing is really excellent and I'm very happy with it. >> >> >> Cheers, >> >> Shawn >> >> On Thu, Oct 30, 2008 at 2:06 PM, jamsession >> <[EMAIL PROTECTED]> wrote: >> >> >> I use Wing too, Love it! >> Unfortunately I haven't found syntax highlighting for Maya or >> MotionBuilder commands :( >> >> I believe someone also found a way to use mapy with wing, Maybe they >> can share the source code (hint, hint, wink, wink, nudge nudge) >> >> >> On Oct 30, 10:10 am, "Andrew Gerard" <[EMAIL PROTECTED]> wrote: >> > I've been using Wing IDE and like it quite a bit. I don't know >> if you can >> > create your own syntax highlighting or not however. I added a >> file extension >> > for mel and just set the Mime Type to be C Source. Not as slick >> as making >> > one for UltraEdit or something, but it picks up strings, >> comments and most >> > of the common keywords. >> > >> > -Andrew >> > >> >> > On Wed, Oct 29, 2008 at 5:48 PM, [EMAIL PROTECTED] < >> >> > >> > [EMAIL PROTECTED]> wrote: >> > >> > > Hi Everyone, >> > >> > > Has anyone had much experience with Wing IDE. I've now started >> using >> > > that and was curious if there is any ability to create your >> own syntax >> > > for MEL. Any info on this would be great. >> > >> > > Cheers, >> >> > > Shawn<br >> >> >> >> >> >> -- >> Olivier Renouard >> >> >> >> >> >> >> -- >> >> They say, "Evil prevails when good men fail to act." What they >> ought to say is, "Evil prevails." >> Nicolas Cage as Yuri Orlov in Lord of War. >> >> >> >> >> >> >> -- >> Olivier Renouard >> >> >> >> -- >> They say, "Evil prevails when good men fail to act." What they >> ought to say is, "Evil prevails." >> Nicolas Cage as Yuri Orlov in Lord of War. >> >> >> >> >> >> >> >> -- >> They say, "Evil prevails when good men fail to act." What they >> ought to say is, "Evil prevails." >> Nicolas Cage as Yuri Orlov in Lord of War. >> >> >> > > > -- > Olivier Renouard --~--~---------~--~----~------------~-------~--~----~ Yours, Maya-Python Club Team. -~----------~----~----~----~------~----~------~--~---
