class flixel.system.debug.Watch extends Window
Available on all platforms
A Visual Studio-style "watch" window, for use in the debugger overlay. * Track the values of any public variable in real-time, and/or edit their values on the fly.
Instance Fields
function add(AnyObject:Dynamic, VariableName:String, ?DisplayName:String = null):Void
Add a new variable to the watch window. Has some simple code in place to prevent * accidentally watching the same variable twice. * *
AnyObject | The Object containing the variable you want to track, e.g. this or Player.velocity. * |
VariableName | The String name of the variable you want to track, e.g. "width" or "x". * |
DisplayName | Optional String that can be displayed in the watch window instead of the basic class-name information. |
function remove(AnyObject:Dynamic, ?VariableName:String = null, ?QuickWatchName:String = null):Void
Remove a variable from the watch window. * *
AnyObject | The Object containing the variable you want to remove, e.g. this or Player.velocity. * |
VariableName | The String name of the variable you want to remove, e.g. "width" or "x". If left null, this will remove all variables of that object. * |
QuickWatchName | In case you want to remove a quickWatch entry. |
function updateQuickWatch(Name:String, NewValue:Dynamic):Void
Add or update a quickWatch entry to the watch list in the debugger. Extremely useful when called in update() * functions when there doesn't exist a variable for a value you want to watch - so you won't have to create one. * *
Name | The name of the quickWatch entry, for example "mousePressed". * |
NewValue | The new value for this entry, for example FlxG.mouse.pressed. |