Debugging spawned child processes

31 views
Skip to first unread message

Nathan Hoyt

unread,
May 15, 2014, 10:37:55 AM5/15/14
to theseus...@googlegroups.com
I recently discovered Theseus, and it has intrigued me right away. I was trying to debug some nodejs code that spawns child processes, when I encountered the error message:
[node-theseus] notice: node-theseus cannot instrument spawned processes yet

I tried reviewing the source of node-theseus and fondue, but it was not immediately apparent why. Is this something that would be extremely difficult to do, or has it simply not been implemented yet? I plan to take a stab at adding this functionality, but it would be nice to hear your thoughts on the issue.

Thanks, Nathan

Tom Lieber

unread,
May 15, 2014, 11:35:54 AM5/15/14
to Nathan Hoyt, theseus...@googlegroups.com
Good question! Two main reasons:

1) There are a few ways to create child processes and I’m not familiar enough with them to handle them well. I couldn’t say which methods to focus on, or say how to discretely infect the child process with fondue. I’d just be guessing if I did it myself. If you have a pet project you want to get working, then you’re in a better position to do it than me, but I can help. :)

2) When I started Theseus, there wasn’t any way to start a WebSocket server in Brackets, so node-theseus starts the server and Brackets tries to connect to it periodically. This would have to be reversed if there were multiple node-theseus processes.


--
You received this message because you are subscribed to the Google Groups "Theseus Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to theseus-discu...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Tom Lieber
http://AllTom.com/
http://infinite-sketchpad.com/
Reply all
Reply to author
Forward
0 new messages