# PsychoPy3 local debugger runs wrong experiment

**URL:** <https://discourse.psychopy.org/t/psychopy3-local-debugger-runs-wrong-experiment/16434>\
**Category:** Online experiments\
**Tags:** psychopy3\
**Created:** [September 11, 2020, 1:38pm UTC](https://discourse.psychopy.org/t/psychopy3-local-debugger-runs-wrong-experiment/16434 "2020-09-11T13:38:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kierad](https://avatars.discourse-cdn.com/v4/letter/k/ebca7d/32.png) [@kierad](https://discourse.psychopy.org/u/kierad)\
**Post date:** [September 11, 2020, 1:38pm UTC](https://discourse.psychopy.org/t/psychopy3-local-debugger-runs-wrong-experiment/16434/1 "2020-09-11T13:38:45Z")

</div>

I have been successfully exporting experiment A into HTML and running it locally by clicking “Run PsychoJS task in local debug mode”.

![Untitled1](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/f/9/f991ab0bca84d031ace5c8ec4029e86198861fc3.png)

Then I created a second experiment, B. When I select experiment B and click the local debug button like always, it still runs experiment A.

Things I have tried:

- Restarting my machine
- Clearing my browser’s cache (Chrome)
- Deleting experiment A (which just results in a 404 error)

---

<div class="post-metadata">

**Author:** ![kierad](https://avatars.discourse-cdn.com/v4/letter/k/ebca7d/32.png) [@kierad](https://discourse.psychopy.org/u/kierad)\
**Post date:** [September 11, 2020, 2:23pm UTC](https://discourse.psychopy.org/t/psychopy3-local-debugger-runs-wrong-experiment/16434/3 "2020-09-11T14:23:12Z")

</div>

Syncing experiment B with Pavlovia _and_ clearing my browser cache seems to have solved the issue.

---

<div class="post-metadata">

**Author:** ![JLC1](https://avatars.discourse-cdn.com/v4/letter/j/0ea827/32.png) [@JLC1](https://discourse.psychopy.org/u/JLC1)\
**Post date:** [January 7, 2021, 12:09pm UTC](https://discourse.psychopy.org/t/psychopy3-local-debugger-runs-wrong-experiment/16434/4 "2021-01-07T12:09:07Z")

</div>

Thanks for posting this solution kierad, this error was driving me insane!

I can confirm that you don’t need to sync your experiment with Pavlovia, it is just necessary to clear your browser cache.

(Although if you want the latest version of your experiment you should export HTML manually or ensure that HTML is set to export on save in the settings).

---

<div class="post-metadata">

**Author:** ![R\_Sali](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/r_sali/32/38649_2.png) [@R\_Sali](https://discourse.psychopy.org/u/R_Sali)\
**Post date:** [October 23, 2023, 10:58pm UTC](https://discourse.psychopy.org/t/psychopy3-local-debugger-runs-wrong-experiment/16434/5 "2023-10-23T22:58:21Z")

</div>

I am having this issue and the listed fix isn’t helping. I have tried this with two experiments to see if I can tease apart the issue, let’s call them Experiment A and Experiment B.

I was able to use the local debugger with Experiment A once, but then the local debugger wouldn’t update with my changes. I then tried to load Experiment B in the local debugger, which tried to run Experiment A’s PsychoPy file in Experiment B’s folder.

I have restarted my computer, deleted the browser cache, and resynced both experiments to Pavlovia. Any advice?

---

<div class="post-metadata">

**Author:** ![Julsten](https://avatars.discourse-cdn.com/v4/letter/j/9fc348/32.png) [@Julsten](https://discourse.psychopy.org/u/Julsten)\
**Post date:** [June 12, 2024, 3:23pm UTC](https://discourse.psychopy.org/t/psychopy3-local-debugger-runs-wrong-experiment/16434/6 "2024-06-12T15:23:29Z")

</div>

Hi, I have the same problem. Any Chance you might have found a fix in the mean time?
