| Reference | Downloads | Github

Trouble With Debugging with Pavlovia


URL of experiment:

Description of the problem: When launching my experiment in Builder mode, I can run through my experiment just fine. However, when I run it through Pavlovia I immediately get an error saying “num_reps not defined”. This is one of the first variables I define in my script, and again the experiment works just fine in Builder mode. What should I do?


In your code component, are you providing a JavaScript translation of your custom Python code? Python code won’t run online. Select “Both” on the “code type” button in your code component to show panes for both Python and JavaScript simultaneously, to aid the translation.