Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8211671
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T10:30:23+00:00 2026-06-07T10:30:23+00:00

friends . i am debugging WPF data binding according to this . i added

  • 0

friends .
i am debugging WPF data binding according to this.
i added PresentationTraceSources.TraceLevel in my xaml.

<Window …
xmlns:diagnostics="clr-namespace:System.Diagnostics;assembly=WindowsBase"
/>

<TextBlock Text="{Binding Path=Caption, diagnostics:PresentationTraceSources.TraceLevel=High}" … />

if i launch my WPF application in VS2008 by press F5, in output window , i did see the data binding detail messages:

System.Windows.Data Warning: 47 : Created BindingExpression (hash=25209742) for Binding (hash=3888474)
…
System.Windows.Data Warning: 91 : BindingExpression (hash=25209742): GetValue at level 0 from Star (hash=31609076) using RuntimePropertyInfo(Caption): ‘ ‘
System.Windows.Data Warning: 71 : BindingExpression (hash=25209742): TransferValue – got raw value ‘ ‘
System.Windows.Data Warning: 78 : BindingExpression (hash=25209742): TransferValue – using final value ‘ ‘

but if i run the app directly and attach VS2008 to process, there is no data binding message in output window.

why these trace message don’t show when i attached to process? how to get these data binding trace messages ?

(in production environment ,my app is launched by another exe, and all i can do is attach to process).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T10:30:25+00:00Added an answer on June 7, 2026 at 10:30 am

    This is purely conjecture.

    When you start the application from Visual Studio with F5, it has a console output Window, and presumably during intialization of the PresentationTraceSources a default ConsoleTraceListener is added which is able to hook up to the Visual Studio output console.

    When you start the application outside of a Debugger then perhaps it doesn’t/can’t add a ConsoleTraceListener successfully because there isn’t one around…..thus when you attach your process to the debugger, the WPF Data Binding trace sources aren’t redirected to the Output Window.

    Maybe you can attach a console listener after you have attached to the process.

    System.Diagnostics.PresentationTraceSources.Refresh();
    System.Diagnostics.PresentationTraceSources.DataBindingSource.Listeners.Clear();
    System.Diagnostics.PresentationTraceSources.DataBindingSource.Listeners.Add(new ConsoleTraceListener());
    System.Diagnostics.PresentationTraceSources.DataBindingSource.Switch.Level = System.Diagnostics.SourceLevels.Warning;
    

    Finally, did use the App.Config mentioned in the Bea Stollnitz/Costa article to get output directed to a Text file ? …. did that work?

    Might be worth checking what the value of System.Diagnostics.PresentationTraceSources.DataBindingSource.Switch.Level is after you attach to the process too.

    This goes into a bit more detail on the whole TraceSources mechanism:

    http://blogs.msdn.com/b/mikehillberg/archive/2006/09/14/wpftracesources.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Friends, I'm lost here. I have this WCF Rest service returning data in json
This is more of an assignment work. I'm trying to help a friend debugging
Friends, I am building and debugging my xproj. Now the control is not stopping
Hi friends i am new for android application..how to check debugging errors in android(eclipse)
So I've got this super long query that I've been debugging. I originally received
friends, I am working with UIBezierPaths, for free hand drawing , and everything works
Friends, Can you please give me significance, difference and uses for Heap and PermGen.
friends. I have a 'make'-like style file needed to be parsed. The grammar is
Friends i'm using string builder for generating Passenger List in which i have used
Friends its really giving me a great head ache about the problem I am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.