How to do it...

  1. Run the code to a point where a bug occurs by pressing F5, or selecting the Debug | Start Debugging menu option. For example, add these lines of code:
UObject *o = 0; // Initialize to an illegal null pointer 
o->GetName(); // Try and get the name of the object (has 
bug)
  1. The code will pause at the second line (o->GetName()).
Note that this code will only execute (and thus crash) when the game is played in the editor.
  1. When the code pauses, navigate to the Call Stack window (Debug | Windows | Call Stack).