Kill a Debugging Session with the Tooling API

If you’re too cool for declarative tools, fret not: You can kill a debugging session using the Tooling API, without going anywhere near the Setup tree.
  1. Open the Developer Console.
  2. Open the Query Editor.
  3. Select Use Tooling API.
  4. Run this SOQL query.
    1SELECT Status FROM ApexDebuggerSession WHERE Status = 'Active'
  5. Change the value of Status from Active to Kill.
  6. Save the modified row.