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.
CodePudding user response:
I solved the issue in the following way, please let me know if you have a better solution.
Import the
core.jar
inside your projectProcessing is compiled with Apache Ant, in order to debug properly you first have to build the
core-sources.jar
, then navigate to theprocessing4-processing-1286-4.0.1\core
folder and launch the commandant source-jar
Copy the
core-sources.jar
inside the project folderAttach the source code from the IDE
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