Skip to content
Go to file
Cannot retrieve contributors at this time
54 lines (29 sloc) 2.28 KB

Magic Glance

Shows a summery of each line you've stepped through


Magic Glance, which can be toggled by clicking the toolbar icon (or by pressing Shift + Alt + Q), gives you amazing insight into your code, by showing you a summary of each line of code you've stepped through.

Using Magic Glance

In order to run this demo click the Magic Glance button in the demo application.

Magic Glance button

Once you stop at the beginning of the method add another breakpoint at the end of the method, and press F5 to continue execution. After stopping at the breakpoint press F10 (Step Over) - you should see the following on your screen:

Return value

There are two things to see here:

  • The returned value is displayed above the last line of the method.
  • There is a blue glasses icon to the left of the line.

Pressing the purple glasses will show a breakdown of the last line:

Return value breakdown

Now either drag the cursor to the begining of the method or press F5 to see the next iteration.

This time use F10 to pass each line one by one.

Notice how a pair of glasses appear near each line you pass? This is OzCode saving the debugged values in case you need them.

Line by line debug

As you pass each line, the current values appear above the variables. Boolean clauses are marked in green or red (true/false) and conditional paths are marked according to the execution.

Reach the last line. There are a few things you can do to analyze the last execution:

Press one of the glasses icons using the mouse, or use Alt and a number (e.c. Alt + 3) to open Magic glance for that line

Magic Glance line 4

Once in Magic Glance mode you can use the ALT + UP/DOWN arrow to move between the lines, or press escape to close Magic Glance.

Another option is to use the Magic Glance toolbar button to toggle showing all of the HUD information automatically.

Magic glance toolbar button

Magic glance enabled

Try running another iteration with the toolbar enabled and see how you prefer to work.

Back to Main

You can’t perform that action at this time.