I have, for a long time, struggled with writing dialogue. As an exercise to help me improve this, I started writing a series of pieces that all held to the following criteria:

2 characters only
1 continuous scene (although multiple locations are allowed)

It's not the most strict of criteria, but I found it helped me.