XNA Creators Club Online
Page 1 of 1 (7 items)
Sort Posts: Previous Next

Console.Out for content pipeline extension?

Last post 9/11/2009 9:55 PM by XXIst Century Boy. 6 replies.
  • 9/11/2009 7:25 PM

    Console.Out for content pipeline extension?

    I finally "got" the pipeline... The 3.1 version of the extender is a life saver!

    But is there a way to use a functionality like Console.Out.Write in the processor/importer code? Nothing shows in the Build/Debug output panes, and breakpoints just aren't recognized.

    I am using Visual Studio Express, because I'm a cheapass and I will continue to do so until it pays by itself, and it seems that I need a JIT debugger that doesn't work in VCE? Is that right?


  • 9/11/2009 7:28 PM In reply to

    Re: Console.Out for content pipeline extension?

    Debugging the content pipeline shows how to debug your content pipeline assemblies.
  • 9/11/2009 8:12 PM In reply to

    Re: Console.Out for content pipeline extension?

    dadoo Games:
    Debugging the content pipeline shows how to debug your content pipeline assemblies.

    Indeed it does. But Shawn refers to DbgCLR, which isn't installed with VS Express, and which isn't available from Microsoft anymore (if I am to believe Shawn own links in the comments)
  • 9/11/2009 8:19 PM In reply to

    Re: Console.Out for content pipeline extension?

    Not sure where you got that information. What OS are you using? If it's Vista, you need to run as an Administrator.
  • 9/11/2009 9:05 PM In reply to

    Re: Console.Out for content pipeline extension?

    I got it from the link to download DbgCLR that Shawn provided in the comment section of the page you've linked to : http://msdn.microsoft.com/en-us/library/7zxbks7z.aspx . He seemed surprised that it's not included in the framework as well.

    "DbgCLR is no longer available"
    "DbgCLR did not ship with this version of the .NET Framework (talking about v3.5)"

    The MSDN page for "Visual Studio Just In Time Debuger", here http://msdn.microsoft.com/en-us/library/5hs4b7a6.aspx seem to confirm that VSE 2008 doesn't have a JIT debugger.

    The suggestion for a replacement seem to be "MDbg.exe", but I don't seem to have that installed either, of Vista's search is crapping on me again.

    I though that maybe the dotNet framework I have is too old or it wasn't completely installed when I have installed Visual Studio Express 2008, but the dotNet 3.5  installer is telling me that everything is up to date and doesn't download any additional components.

    And I am on Vista x64, but I am not sure what you are suggesting that I run as Admin? Visual Studio?
  • 9/11/2009 9:19 PM In reply to

    Re: Console.Out for content pipeline extension?

    Answer
    Reply Quote
    I don't know where the debugger can be obtained these days, but to get trace output from a processor, you can either call Trace.WriteLine and then use a separate debug spew viewer to see the resulting OutputDebugString data, or you can use the ContentProcessorContext.Logger object to send messages or warnings back to the MSBuild host process. Depending on what priority you specify and how you have your Visual Studio options configured, this output will show up in the VS output window.
    XNA Framework Developer - blog - homepage
  • 9/11/2009 9:55 PM In reply to

    Re: Console.Out for content pipeline extension?

    Shawn Hargreaves:
    I don't know where the debugger can be obtained these days, but to get trace output from a processor, you can either call Trace.WriteLine and then use a separate debug spew viewer to see the resulting OutputDebugString data, or you can use the ContentProcessorContext.Logger object to send messages or warnings back to the MSBuild host process. Depending on what priority you specify and how you have your Visual Studio options configured, this output will show up in the VS output window.

    Just what I needed! Thanks!
Page 1 of 1 (7 items) Previous Next