Best way to debug class library project

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
3/6/2012 10:00:44 AM
Gravatar
Total Posts 42

Best way to debug class library project

Greetings all

Looking for ideas and ways of debugging class library projects. Have a number of submission handlers and it's a pain to build, push the dll out and then check the logs for errors.

 

Thanks!

3/6/2012 11:22:48 AM
Gravatar
Total Posts 18439

Re: Best way to debug class library project

Hi Steve,

You can set breakpoints in your code in a class library just like any other project and when your code is invoked it will stop at your breakpoint. The startup project would need to be the mojoPortal web project and you'd need to build the whole soution in debug mode.

I don't really have any good advice for debugging in a production environment, but if you are getting unexpected things on production that you can't produce in your dev environment then logging is a good option. I'd do thorough testing in the dev environment first.

Hope that helps,

Joe

3/7/2012 11:15:50 AM
Gravatar
Total Posts 42

Re: Best way to debug class library project

Thanks Joe - you advice worked fine. I can now see what's going on. 

You must sign in to post in the forums. This thread is closed to new posts.