How to debug in Processing Development Environment (PDE), Also is there a plugin to support intellisense -
i new processing development environment, did homework , found import processing libraries java ide (eclipse) , utilize debugging, wondering if there pde plugin can help intellisense , debugging little sketches pde convenient.
debugging
since launch of processing 3, debugging native feature of processing ide.
in screenshot below, you'll see new debug menu. set breakpoints on setup() , draw() methods indicated <> marks in line numbers. right popout window listing variable , object values, etc.
from preferences menu, check box code completion ctrl-space.
then, can start typing function ellipse , press ctrl+space pop intellisense. moreover, turned on, accessing properties or methods of object typing . after should automatically pop intellisense.
finally, take advantage of more powerful ide importing processing core.jar java project. core.jar file located relative processing installation, such as:
osx: /applications/processing 3.0.1.app/contents/java/core/library/core.jar windows: \program files\processing-3.0.2\core\library\core.jar
in processing 1 , 2, must run applet. in processing 3, run java application. here's illustration demonstrate:
import processing.core.*; public class main extends papplet { // in eclipse, run project java application (not applet) public static void main(string[] args) { string[] = {"main"}; papplet.runsketch(a, new main()); } public void setup() { size(500, 500); } public void draw() { ellipse(mousex, mousey, 40, 40); } } processing
No comments:
Post a Comment