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.