Hi.
Step 1. Identify the function module or BADI you want to debug. Set a breakpoint (click in the left-hand margin & a small 'stop sign' appears).
Step 2. Execute the transaction that calls the BADI / function module. When it hits the breakpoint, a new debug session will pop up in a new window.
It's all pretty obvious, I think!
good luck
Paul