FDT 4 – How to auto-generate a trace() command

I only just discovered this incredibly useful shortcut in FDT. I imagine that knowing this will buy me an extra week or two of life time as I don’t have to type out trace() anymore!

Simply put the cursor over the object you want to trace and press Cmd-0 (on a Mac). FDT will then generate the trace statement for you. For instance, in the below statement, if I put the cursor on the width property of the _questionBoxStyle object and press Cmd-0, the following will happen:-

_questionBoxStyle.width = _questionBoxWidth;
trace('_questionBoxStyle.width: ' + (_questionBoxStyle.width));

Advertisements

No comments yet

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: