Andrew Connell recently posted a great article on his blog about SharePoint Debugging and Logging Tips and Tricks.  This is often one pain point of developers when developing solutions for SharePoint.  Check it out and hopefully it will make your development a little bit easier.