Fork MediaPortal on GitHub
MediaPortal Windows Media Center
MediaPortal Wiki > MediaPortal 1 > Contribute > Development > Debugging

Debugging

Was this page helpful?
    Verify.png

     On 15 Sep 2010, chefkoch requested that this page be reviewed and verified.

    Here you will find instructions on how to debug the MediaPortal code or your own plugin code you wrote for MediaPortal. This guide covers Microsoft Visual Studio only.

    Prerequisites

    Make sure you read the guide about compiling MediaPortal. It covers everything to run MediaPortal in release configuration and all prerequisites listed their also for for this guide.

    Setting up Visual Studio

    Open up MediaPortal.sln in Visual Studio, right click on the included C# project "MediaPortal" and chose "Set as StartUp Project". Now set the solution configuration to "Debug" and run the solution with the green "Play" symbol or hit F5 on your keyboard.

    Configuring your Debug build

    On the first startup of your new debug build you are asked to follow the configuration wizard. Please do so, it will set up all basic functions. To change settings afterwards you can simply run "configuration.exe" in the "MediaPortal\MediaPortal.Application\bin\Debug" folder. Be sure not to run it from the release folder, it will just change the settings for the release build!

    Command Line Startup DebugOptions

    • Configuration.exe /debugoptions - opens Configuration Tool with an additional item for TV called Debug Options - only for advanced testers and developers!
    • SetupTv.exe --DebugOptions  - provides an addition item in TV Server Configuration called Debug Options - only for advanced testsers and developers.

     

    MPLogo120.png

    1.2.0 beta:  Command line option syntax has changed in 1.2.0 beta. Use the command SetupTv.exe /DebugOptions to get access to the TV Server configuration debug options.




    Tag page (Edit tags)
    Running the latest version?

    V1.8.0 - released July 2014
    Releasenews | Download
    Changelog
     | Requirements
    HTPC
    Team-MediaPortal
     
    About
    Contact |  Press
    Partners