c# - What is tracepoint used for? -
they can placed on method names. how used , for?

the debugger team has blog post on subject examples well: http://blogs.msdn.com/b/visualstudioalm/archive/2013/10/10/tracepoints.aspx
tracepoints not new feature @ (they been in visual studio since vs 2005). , aren't breakpoints per say, don't cause program execution break. can useful when need inspect something, no stop program causes behavior of bug not repro, etc.
tracepoints attempt overcome case when can't stop program inspect cause behavior not repro, allowing breakpoint log information debug output window , continue, without pausing @ ui. can macros, can more time consuming.
to set tracepoint, first set breakpoint in code. use context menu on breakpoint , select “when hit...” menu item. can add log statements breakpoint , switch off default stop action, log , go. there host of other info can add log string, including static information location of bp, such file, line, function , address. can add dynamic information such expressions, calling function or callstack. things adding thread info , process info, can track down timing bugs when dealing multiple threads and/or processes.
Comments
Post a Comment