Cookie Clicker

Cookie Clicker

Cookie Clicker Workshop
Tune your cookie-clicking experience just right with quality-of-life tools, extra player-made content or just dirty dirty hacks.
Learn More
How do you debug mods for this?
If I were developing a mod for the browser version, I could simply console.log() to see what I need to see. Right now I'm awkwardly using Game.notify() to serve this purpose, but for anything even a little complex this practice quickly becomes unwieldy or even downright useless. I find as I'm working on my mod that I'm constantly running into problems with no obvious cause, and this is compounded by the fact that I'm very new to JavaScript, though not coding as a whole; I've been spoiled rotten by Python, it seems. There has to be some obvious trick I'm missing.
< >
Showing 1-2 of 2 comments
daniphylaxis 2 3 Feb, 2023 @ 5:52am 
Never mind, I figured it out.

The way to access the console in Cookie Clicker is to find \SteamLibrary\steamapps\common\Cookie Clicker\resources\app\start.js (open with your preferred code editor or Notepad) and change where 'DEV' is declared on line 12 to =1 instead of =0. This causes the console to pop up when Cookie Clicker is loaded, among other things.
Last edited by daniphylaxis; 3 Feb, 2023 @ 5:54am
Fuska$ 1 7 Mar, 2023 @ 2:25pm 
I use browser version for debugging, you just paste mod into console and voila. And if you break something, you can just reload.
< >
Showing 1-2 of 2 comments
Per page: 1530 50