Skip to main content

Python: Don't Mix Wing IDE and sshfs

Wing IDE Professional is awesome. sshfs is awesome. Massively large codes bases are, well, sometimes you're stuck with them.

But note, Wing IDE, sshfs, and massively large code bases don't mix; it's slooooowwwww. Use NFS instead.

By the way, the ability to run Wing IDE on my Linux laptop in order to debug a process running on a remote FreeBSD server (using stackless Python no less!) is fickin' awesome!

Comments

Anonymous said…
Did your wings IDE work with stackless python ? What's the version of Wings and stackless you were using ? I tried many combinations, stackless python always crack during debug with wings. Any trick you are using to them work together ? Thanks.
I was running the IDE using a normal version of Python, and I was using the debug hooks under stackless. I was using a proprietary version of stackless, so your mileage may vary. I was specifically *not* using Wing IDE on stackless threads or doing any heavy context switching under stackless.
I was running the IDE using a normal version of Python, and I was using the debug hooks under stackless. I was using a proprietary version of stackless, so your mileage may vary. I was specifically *not* using Wing IDE on stackless threads or doing any heavy context switching under stackless.
Anonymous said…
Shannon, thanks for the info. Is
the debug hooks you mentioned replacing tasklet.__call__ as the following ? Thanks again.

def new_call(self, *args, **kwargs):
f = self.tempval
def new_f(old_f, args, kwargs):
print "wrapper.start", args, kwargs
old_f(*args, **kwargs)
print "wrapper.end"
self.tempval = new_f
tasklet.setup(self, f, args, kwargs)

tasklet.__call__ = new_call
The proprietary version of stackless I was using didn't have tasklets, so I guess that means no ;)

I was running this stuff on FreeBSD, so the Wing guys gave me a tarball that contained the debug hooks. It was called wingide-debugger, or something like that.