L.M
L.M

Reputation: 423

Is it possible to programmatically set trace points in VS 2010?

This is in reference to the Visual Studio automation interface. It is possible to set breakpoints in a program using the method:

EnvDTE.Debugger.Breakpoints.Add(...)

However, I don't think it's possible to configure trace points this way. Any ideas?

Upvotes: 1

Views: 101

Answers (2)

Waylon Martinez
Waylon Martinez

Reputation: 153

Or you could also look at a logging framework like Log4Net.

Upvotes: 0

Gloopy
Gloopy

Reputation: 37785

Check out the answers in this post particularly the BreakWhenHit = false, Message, and Macro properties of the Breakpoint2 interface.

Upvotes: 1

Related Questions