Debug Tracker Window - A tool to help debug javascript

agoaj

Villager
Member
Joined
Jul 19, 2015
Messages
17
Reaction score
56
First Language
English
Primarily Uses
I've had problems with the built in debug console, so I've been working on a new window to help track variables I'm interested in.

How it works is you call DebugTracker.Track("My Variable Name", value) in your script and it shows that value in the new window. This is useful if you want to track an expression that would be hard to watch otherwise.

You can also call DebugTracker.Watch("My Namespace", myObject, ["fieldname1", "fieldname2"]) , this will only need to be called once and the debug window will show you the fields values. If it's a string or number or bool you can edit it. If it's a function you'll see a button you can press to trigger it. You can call it without any fieldnames and it will pull out all public fields.

I've made something like this for Unity and it's helped me fix a bunch of annoying bugs without flooding the console. It's helping me with matrix issues in Mode7 right now. Wondering if anyone else could use this?
 

Hudell

Dog Lord
Veteran
Joined
Oct 2, 2014
Messages
3,546
Reaction score
3,717
First Language
Java's Crypt
Primarily Uses
RMMZ
What problems did you have with the built in watch list?
 

agoaj

Villager
Member
Joined
Jul 19, 2015
Messages
17
Reaction score
56
First Language
English
Primarily Uses
What problems did you have with the built in watch list?
It's doesn't update in realtime, and it doesn't save between sessions.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Frostorm wrote on Featherbrain's profile.
Hey, so what species are your raptors? Any of these?
... so here's my main characters running around inside "Headspace", a place people use as a safe place away from anxious/panic related thinking.
Stream will be live shortly! I will be doing some music tonight! Feel free to drop by!
Made transition effects for going inside or outside using zoom, pixi filter, and a shutter effect
I have gathered enough feedback from a few selected people. But it is still available if you want to sign up https://forums.rpgmakerweb.com/index.php?threads/looking-for-testers-a-closed-tech-demo.130774/

Forum statistics

Threads
105,992
Messages
1,018,189
Members
137,771
Latest member
evoque
Top