Debug a plugin with vs 2005 Express (1 Viewer)

zebons

Portal Pro
January 2, 2006
1,484
114
Hi,
How can I debug my plugin with vs 2005 Express without adding Mediaportal project in mine or my plugin in Mediaportal project ?
In a prvious install on my PC, I could do it, but I had to reinstall my PC and now I don't remenber how I configure it to do so, but in my project, I entered in debug mode with the F5 function (Mediaportal was automaticly compiled) and I don't add that project into mine....
 

Inker

Retired Team Member
  • Premium Supporter
  • December 6, 2004
    2,055
    318
    I don't know about 2005, but I ran 2008 express for a bit. The express line seems to miss configuration options to start external programs and attach to them.

    To my surprise, a project that was done in 2008 prof and then opened in express did launch and connect to the external app though, you just can't configure it inside VS.

    Locate you're csproj.user file, and in the config you want, try adding the following:
    Code:
    <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
        <StartAction>Program</StartAction>
        <StartProgram>h:\MP2\xbmc\bin\Release\mediaportal.exe</StartProgram>
        <RemoteDebugEnabled>false</RemoteDebugEnabled>
        <StartWorkingDirectory>h:\MP2\xbmc\bin\Release\</StartWorkingDirectory>
      </PropertyGroup>

    Obviously you also need to set up post-build events to copy the dll into the correct directory.

    Again I don't know if this works in 2005 express.
     

    zebons

    Portal Pro
    January 2, 2006
    1,484
    114
    I don't know about 2005, but I ran 2008 express for a bit. The express line seems to miss configuration options to start external programs and attach to them.

    To my surprise, a project that was done in 2008 prof and then opened in express did launch and connect to the external app though, you just can't configure it inside VS.

    Locate you're csproj.user file, and in the config you want, try adding the following:
    Code:
    <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
        <StartAction>Program</StartAction>
        <StartProgram>h:\MP2\xbmc\bin\Release\mediaportal.exe</StartProgram>
        <RemoteDebugEnabled>false</RemoteDebugEnabled>
        <StartWorkingDirectory>h:\MP2\xbmc\bin\Release\</StartWorkingDirectory>
      </PropertyGroup>

    Obviously you also need to set up post-build events to copy the dll into the correct directory.

    Again I don't know if this works in 2005 express.
    :D It works fine !
     

    Users who are viewing this thread

    Top Bottom