Specifically, what I'd like to do is raise new events from my apps and libraries, similar to those exposed by ADO.NET.
Real life scenario: a patch for NHibernate that shows executed queries even when they are cached (and, therefore, don't reach the ADO.NET layer)
I found a lot of documentation about using Intellitrace and intellitrace, but none about generating it.
Is this even possible? Or is everything hardcoded in the guts of VS?
Check out this example to see how you can define your own IntelliTrace Events.
来源:https://stackoverflow.com/questions/5552992/is-it-possible-to-extend-intellitrace-events