Results 1 to 4 of 4

Thread: Do you use the VS Hosting Process for debugging?

  1. #1

    Thread Starter
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Do you use the VS Hosting Process for debugging?

    I'm just starting to use VS 2010 - not sure if this was available in VS 2008 - but I was reading about the Hosting Process you can start for debugging.

    This allows you to call methods and jump into breakpoints in them without starting the whole app running.

    Is this really the case? Does anyone use this feature and what else does it offer?

    Thanks!

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  2. #2
    Karen Payne MVP kareninstructor's Avatar
    Join Date
    Jun 2008
    Location
    Oregon
    Posts
    6,713

    Re: Do you use the VS Hosting Process for debugging?

    I have found some pretty cool debugging features in VS2010 that I have tried but never actually used, the feature you mentioned I have not used. What I have found to be of great value are code contracts which I used in one project.

  3. #3

    Thread Starter
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: Do you use the VS Hosting Process for debugging?

    I'm creating a complex solution - at this time 4 projects with one executable being the UI and the other 3 are back ground services - httplistener's communication methods in place between them all.

    Seems I could create a 5th executable and put common methods on that executable. Seems I could debug them without a "actual thread" like FormLoad or AppStart or something like that...

    Do you package common functions in DLL's still in VS? I've not done a project as complex as this since VB6 days...

    I saw someone say you can call functions from other executables as long as you reference the project they are in from that project.

    Got read up I guess - off to search forum and google...

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

  4. #4
    Karen Payne MVP kareninstructor's Avatar
    Join Date
    Jun 2008
    Location
    Oregon
    Posts
    6,713

    Re: Do you use the VS Hosting Process for debugging?

    I create business and data projects, which any executable in the solution can reference along with common utility dll projects. Also will create a class or module, place it in a common folder under the solution then when adding this file to a project select “link” which is a two edge sword in that any edits affect all projects which have the file as a link. Another idea is creating base classes in say a data project that has been setup to not be used directly but instead inherited where the base class enforces specific rules and/or contains common base code. I have found building complex solutions in this manner really helps a lot in many ways. The downside to all of this is more up front planning.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width