[Dev] howto run/debug ZipTie from Eclipse
Brett Wooldridge
bwooldridge at alterpoint.com
Fri Mar 28 10:24:24 CDT 2008
Rita,
As you can probably tell, we don't really run the server from within Eclipse. This is because the server itself is an OSGi-based application and we control things like boot delegation of classloading etc, that are too esoteric for Eclipse to deal with. But with attaching the debugger to the server the effect is the same. You set breakpoints like you normally would, etc. Everything is exactly the same as if you were running "inside" Eclipse. The client is runnable/debuggable from the Eclipse environment.
The sever has two debug options you can give it on the command line:
./server.sh -debug
Or
./server.sh -debugw
The 'w' version will wait for the debugger to attach before allowing the server to start - this is useful for debugging server boot issues, but generally not needed. But will start the debugger listening on port 8787. All you need to do is create a "Debugging configuration..." in Eclipse and pick "Remote Java Application". Use port 8787 and 'localhost', and it doesn't matter what project or you pick as the "debug project", they are all equal.
Most of our documentation efforts have been end-user focused rather than fellow-developer focused, but we know we need docs in those areas too. Let us know if there is anything we can help you with to make-up for the lack of doc. And feel free to sign-up on the wiki and add contributions to the documentation as you discover things, we'd love the help. :-)
Regards,
-Brett
On 3/28/08 5:14 AM, "Rita Machado" <rita.machado at tet.com.br> wrote:
Hello everybody,
I have just downloaded and compiled the ZipTie source code but I don't
know how to run/debug the application from Eclipse. Is there any
document that explains that? I couldn't find any howto about this subject.
Thanks in advance!
Rita.
_______________________________________________
Dev mailing list
Dev at ziptie.org
http://mailman.ziptie.org/listinfo/dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ziptie.org/pipermail/dev/attachments/20080328/e371e815/attachment.html
More information about the Dev
mailing list