Question

I've got AvalonEdit embedded in a WPF application. As I resize, change text, etc, it continually sends debug messages to the console output window. Messages like:

OnHighlightStateChanged forces redraw of line 13    
Building line 13

Is there any way to turn these off? There are lots of them and they bury my other debug messages. Thanks. (I'm on Visual Studio 2013).

Was it helpful?

Solution

Are you using a debug build of AvalonEdit? You shouldn't see these if you use a release build / the official binaries (for example, from the NuGet package).

If for some reason you need to use self-compiled debug binaries of AvalonEdit, the answer is simple: remove the Debug.WriteLine() calls from the AvalonEdit source code.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top