Debugging with FDT
Advanced debugging with FDT. In this video Alan highlights the main features of FDT debugging.
Video Transcript
00:00So, the next part now is I want to talk a little bit more about, actually, if you want
00:10to do something a little more sophisticated for debugging.
00:13So you have the experience of loading up the ADL, right, which is the Adobe Debug Launcher,
00:20that first thing that we did, and that's good if you don't have a device handy.
00:25You just want to get an idea of proportions and scale.
00:29And then if you do have a device handy to you, it's really easy to simply build and
00:33package your application and push it to your device.
00:37But we also offer more debugging advancements for you and debugging capabilities.
00:45So I'll just quickly jump to a project I already have set up.
00:48It's going to be a little bit more interactive here.
00:52So this is a simple multi-touch example I've done.
00:56And again, these are all, you can download these.
00:58I'll provide a link at the end of the talk.
01:01So you can actually download all this code and load this into the FTT-free.
01:07And you'll be able to play with these and experiment with these.
01:10All right.
01:12So what I've done here is you can see I'm using a simple multi-touch example.
01:18And I'm doing a few trace statements here.
01:21So actually what I'm going to do is I'm going to show some of our debugging options, which
01:26is simple print statements, which is what you expect, but also how you can have breakpoints
01:31in here.
01:34So what I'll do is that I'll add a breakpoint right here to line 49.
01:40I'll just double-click in there.
01:42And for this multi-touch example, we'll go to Debug as Mobile Application.
01:48And last time we were doing Run As, but this time I want to do Debug As.
01:52I want to do that, Debug As.
02:01And we see we're going through all of the hoops and everything.
02:05All right.
02:08So as you can see, it's already a little different here because you can see our console now has
02:12a little slightly different output.
02:16So you can see that this is actually where the debugger has connected.
02:20So this is how we know you can see it's loading in our application.
02:24And it's actually showing up on my device right now.
02:26And you'll see that I'm about to touch my mobile device right now.
02:30When I push down, and you see that I had a trace come out, which is this line right here,
02:36but it also triggered a breakpoint.
02:38And you can see that the whole debug perspective now has changed.
02:43And so this is really handy if you're curious about inspecting actually some finer details
02:50about the current state of your application.
02:53So I have access to values of properties I've set, labels, dots, so you can see these local
03:04variables I have in here.
03:06And you can tunnel down inside of these.
03:07So this experience is really, really handy, not so much in the beginning, but as you
03:14build your mobile application and get further on and get some more and more complicated,
03:18it's very, very handy to have a debugging tool such as this available to you.
03:24And of course, we have all the other typical debugging that you would with any other Flash
03:29application.
03:30I can step through the code one line at a time, so you can see here we're stepping through
03:35things and stepping over in code, and we can walk through the lines of code available
03:40to you, and you can see values here that are changing.
03:44So that's really how quick and easy it is to just get up and running with FTT3 and try
03:52out and deploy to your device and really experiment.
