Programmaticall y, you need to work with the DTE80 assembly which comes in
either COM or .NET flavors. I don't know exactly how to do it, but there are
plenty of code samples on MSDN to get you started.
Peter
--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net
"Bob" wrote:
On Mar 22, 12:21 pm, Peter Bromberg [C# MVP]
<pbromb...@yaho o.yabbadabbadoo .comwrote:
Does anyone know how to clear the window so it's easier to see the
stuff you have listed with Debug.Write(xyz )?
You can't programmaticall y. I know, it sucks. Best to make a logger
and use that instead. Although, sometimes the Output window info is
useful, so its not a complete waste. But, for general debugging it
pretty much is.
I wonder if you can just create a console, like in Win32 apps? And
use that? That'd be the easiest solution, I imagine. But, last I
heard you couldn't instantiate Console in .NET 2.0 or later.
Does anyone know how to clear the window so it's easier to see the
stuff you have listed with Debug.Write(xyz )?
>
You can't programmaticall y. I know, it sucks. Best to make a logger
and use that instead. Although, sometimes the Output window info is
useful, so its not a complete waste. But, for general debugging it
pretty much is.
>
I wonder if you can just create a console, like in Win32 apps? And
use that? That'd be the easiest solution, I imagine. But, last I
heard you couldn't instantiate Console in .NET 2.0 or later.
>
Zytan
>
>
Does anyone know how to clear the window so it's easier to see the
stuff you have listed with Debug.Write(xyz )?
>>
>You can't programmaticall y. I know, it sucks. Best to make a logger
>and use that instead. Although, sometimes the Output window info is
>useful, so its not a complete waste. But, for general debugging it
>pretty much is.
>>
>I wonder if you can just create a console, like in Win32 apps? And
>use that? That'd be the easiest solution, I imagine. But, last I
>heard you couldn't instantiate Console in .NET 2.0 or later.
>>
>Zytan
>>
>>
What do you imply by your question? I have one question, and maybe
this is what you are getting at: Is there any reason why the Output
Windows is NOT cleared? I'd prefer it cleared every time. Oh, wait,
I think I know why: because you'll clear the start-up logging of the
process. We actually want it to be cleared BEFORE that, so that only
the current run is shown in the window. Yeah, so this is why it is
likely not worth it. And thus, a logger is a better idea.
Comment