hapticdata/toxiclibsjs — Issue #19: How to debug
Author: nulpoet
Created: 2012-01-15 08:50:43+00:00
State: open

I am trying to debug my modified version of the example ''Attraction2D_pjs.html'.[https://github.com/hapticdata/toxiclibsjs/blob/master/examples/Attraction2D_pjs.html] using firebug console in web browser.
I can access the processing instance using the global variable 'Processing.instances[0]' as stated in [http://processingjs.org/articles/jsQuickStart.html#accessingprocessingfromjs].
I can access all the functions as Processing.instances[0].setup, but can't access the top level variables like 'VerletPhysics2D physics'.

Can you explain or where can I read about how processing.js converts processing code to javascript ?

To be specific, I need to check some properties for some particles at specific times. using console.log floods the console.
How did you debug the examples you have written?