- Open Developer Console
- Click on Debug Tab
- Click on Open Execute Anonymous Window (CTRL+E)
- Paste the below Code and Highlight with the those two lines
- Check the Open Log checkbox
- Click on Execute Highlighted button then click on Debug only check box
- Copy the Session Id and use it.
Happy Coding!!!