Feature Focus: Advanced Stepping Technology

Stepping Into CFCs and Tags

You can step into custom tags, functions and also CFCs. Here is a simple example. I have the following code (which has a breakpoint set and which I have run).

Screenshot

The page is very simple. I call a tag which returns me an employee component. I then call a method on that component. When the break point first fires, the stack trace looks like this:

Screenshot

Now, I "Step Over" the code until I get to the cf_getEmployee tag. Once that tag is highlighted I then "Step Into" it. You will see the code for this new tag and the stack trace will look like this:

Screenshot

OK. Let's "Step Out" again and return to the first file. As well as being able to step into functions and CFCs, you can also look into them. If we have a look in the variables view and open up out emp component, you can see exactly what's inside:

Screenshot

Finally, we will step into the emp.promote() method and have another look at the stack trace.

Screenshot

As you can see here, to help you work out what is going on, as well as the file and line number, we also show you which function has been called.

Current Events »

Jul
29
CFUnited Gold Sponsors Intergral GMBH

Spotlight »

Newsletter Sign Up »

Adobe Solution Partner »

Adobe Solution Partner Adobe Certified Professional ColdFusion MX 7 Adobe Certified Professional Flex Developer