0

I'm looking into using this library for our Java-application: http://code.google.com/p/aparapi/. One requirement for this library is that the code is compiled with debugging symbols. I.e. with the -g parameter enabled (see their FAQ). We don't want to enable debugging information for our entire app. Is it possible to only compile the classes that interact with this library using -g and then compile the rest of the code without any debugging information (possibly even obfuscate the rest of the code).

1
  • Take a look at Byteman. Commented Oct 6, 2011 at 14:48

1 Answer 1

2

Sure you only need to compile the 'Kernel' class using -g.

If your kernel is an anonymous inner class this can be tricky ;) but you can compiler the containing class with -g. Then copy the ${n}.class file to one side and recompile without -g and copy the ${n}.class file with debug symbols over the one without. If that makes sense.

I should have been clearer in the FAQ. I will make this change to the FAQ.

Gary

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.