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.
visual studio core missing source file error
How can I solve this error?
I would like to debug the processing code properly.
I followed this tutorial in order to import core.jar on my project.
2
Answers
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.1core
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
Download the complete Extension Pack for Java, click the plus sign on the right side of Referenced Libraaries under the JAVA PROJECTS panel to add a
.jar
package reference.