Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [Dltk-dev] Welcome Johan Compagner as a new technology.dltk Committer



On Tue, Apr 22, 2008 at 3:32 PM, Johan Compagner <jcompagner@xxxxxxxxx> wrote:

that case of perl embedded in an parent application that is completely separate from eclipse thats what we have.
And with remote debugging this would just work. You start up you application where ever you want you give it a flag like -debug:port=10000 and your embedded perl interpreter (or the app itself) just opens up a server socket on that port
and start listening. (suspending doing anything running or just goes ahead with what ever it wants and only start to debug when you are connected to that port.)
Then in eclispe you have a remote launch configuration where you say connect to host X port 10000 and eclipse doesnt try to start anything but just opens up a socket to it.

  yeah - that's the rub - we're not about to spend any development resources to implement adding an extra socket listener, so we're stuck with having with eclipse having to listen for the connections. not to say someone else in a similar situation wouldn't want the mechanism you described - but given there are so few implementations of the dbpg engine for perl (by my count, there is a total of 1) and the other languages as well, this may only be a useful feature for you for some time to come given the extra level of effort that would be required on the user's end to make it work.

No the same source lives on both places , And when the debugger is connected it is compiled with linenumber info and the debugger (so a debuggable script is generated instead a compiled or interpreted)
We have our own "hot swap" implemented so if you save a script in eclipse we push that to the client in our own way (separate of the _javascript_ debugger) and it is compiled again

Let me first figure out what things i can commit pretty harmless so that i can cleanup my outstanding code because i have quite a lot of changes (bug fixes and improvements like remote debug)
Then i can send you a patch so that you can also quickly look at it if you want. And see how we integrate it correctly and nicely reusable for everybody.

  looking forward to this - if you haven't already, perhaps you could try out the firefox plugin and see how that works that way you'll be able to give insight from both sides of how this needs to be supported.

--
-jae

Back to the top