Home > Blockchain >  how to use processing as a library?
how to use processing as a library?

Time:01-04

I'm trying to use processing as a normal java library.

The application is working fine, but I can't debug the code because the Visual Studio Code IDE is complaining about missing source files.

enter image description here

CodePudding user response:

I solved the issue in the following way, please let me know if you have a better solution.

  1. Import the core.jar inside your project

  2. Processing is compiled with Apache Ant, in order to debug properly you first have to build the core-sources.jar, then navigate to the processing4-processing-1286-4.0.1\core folder and launch the command ant source-jar

  3. Copy the core-sources.jar inside the project folder

  4. Attach the source code from the IDE

  5. Now you should be able to see the source code and place breakpoints

I committed the code under the following repo

https://github.com/DanieleCampagnoli/processing-maven-skeleton

  • Related