By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,678 Members | 1,288 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,678 IT Pros & Developers. It's quick & easy.

System.Diagnostics.Debug

P: n/a
In my Smart Device Project, I'm trying to show a message only when
debugging. We used to be able to do this with Debug.Print in VB 6. I've
tried System.Diagnostics.Debug.WriteLine and this doesn't seem to do
anything - I can't see it writing anywhere.

I also tried Debug.Assert and Debug.Fail and both of these do show the
message on the Pocket PC device, but then when I click on Continue or Debug
at the bottom of the message on the device, I get a NullReferenceException
in Visual Studio.

Can someone explain what is going on here?
Nov 20 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Hi,

Debug.writeline will send it output to the ide's output window
when the application in running in debug mode.

Ken
--------------
"Mike" <mi*******@nospam.msn.com> wrote in message
news:Oy**************@TK2MSFTNGP09.phx.gbl...
In my Smart Device Project, I'm trying to show a message only when
debugging. We used to be able to do this with Debug.Print in VB 6. I've
tried System.Diagnostics.Debug.WriteLine and this doesn't seem to do
anything - I can't see it writing anywhere.

I also tried Debug.Assert and Debug.Fail and both of these do show the
message on the Pocket PC device, but then when I click on Continue or Debug at the bottom of the message on the device, I get a NullReferenceException
in Visual Studio.

Can someone explain what is going on here?

Nov 20 '05 #2

P: n/a
It's not. Has anyone tried Debug.WriteLine in a Smart Device project?

"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hi,

Debug.writeline will send it output to the ide's output window
when the application in running in debug mode.

Ken

Nov 20 '05 #3

P: n/a
Hi Mike,

The initial release of the Visual Studio.NET debugger for the .NET Compact
Framework does not implement this feature. However, you can define your own
listener classes within your application to handle the debug messages.

Jimmy Zhu

Nov 20 '05 #4

P: n/a
Thanks.

"Jimmy Zhu" <ji*****@online.microsoft.com> wrote in message
news:em**************@cpmsftngxa06.phx.gbl...
Hi Mike,

The initial release of the Visual Studio.NET debugger for the .NET Compact
Framework does not implement this feature. However, you can define your own listener classes within your application to handle the debug messages.

Jimmy Zhu

Nov 20 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.