1

I am studying the code who has written by other programmer. there are bunch of classes and triggers. i want to check the flow of the trigger. How to see hirarchy and how to set breakpoints to trigger?

  • 1
    You can use System.debug or System.assert – Anurag Bhardwaj Jul 14 '16 at 10:22
  • without using system.debug is there is any way i can see the flow of trigger? – Ghanshyam Choudhari Jul 14 '16 at 10:24
  • For this you need to run practical scenarios of your application. Run them and check the trigger code. I only know this point for trigger flow. – Anurag Bhardwaj Jul 14 '16 at 10:28
0

Reference Link:

The Apex Interactive Debugger

Getting Started with the Apex Debugger

  • The Apex Debugger extends the Force.com IDE plug-in for Eclipse and does most of the things you expect a debugger to do. Use it to: Set breakpoints in Apex classes and triggers.
  • View variables, including sObject types, collections, and Apex System types. View the call stack, including triggers activated by Apex Data Manipulation Language (DML), method-to-method calls, and variables.
  • Interact with global classes, exceptions, and triggers from your installed managed packages. (When you inspect objects that have managed types that aren’t visible to you, only global variables are displayed in the variable inspection pane.)
  • Complete standard debugging actions, including step into, over, and out, and run to breakpoint.
  • Output your results to the Console window.

This post from @sfdcfox would be really helpful regarding debugging with Eclipse tool.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.