473,388 Members | 1,298 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

System.Diagnostics.Debug

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
4 2324
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Microsoft News | last post by:
Hi all. Does id() xpath function work in System.XML? I have built dtd, schema, xdr for a simple xml which includes attributes definded as ID and IDREFS. Validation is occurring properly for all...
1
by: Raj Dhrolia | last post by:
Hi, In one of my method, I want to know the class/function that called/invoked this method. i.e. i have a function named Method1() in class1. I want "ClassX.MethodX()" in Method1(), when...
2
by: cody | last post by:
System.Diagnostics.Debug.Assert(); Hello??? A language should encourage programmers to heavily use the assert-feature, since it improves safety, stability, readability and maintainability of...
2
by: Joey Mack | last post by:
Greetings. I am trying to use the System.Diagnostics.Process class to perform some actions through the Windows command line. The applicable code appears below. The code builds the follow command...
4
by: A.M | last post by:
Hi, If I use System.Diagnostics.Debug.WriteLine in a asp.net application, where does the output go? Is there any trace monitor application thar shows me the trace output? Thanks, Allan
4
by: Jiho Han | last post by:
I have the following defined in web.config under <configuration> node: <system.diagnostics> <switches> <add name="MainSwitch" value="4"/> </switches>
1
by: Patrick | last post by:
When Tracing in ASP.NET, the IIS process (on IIs5.1) is locking on the Trace file, and I can't read the trace file without restarting the IIS: Even the following does NOT work (how could I fix...
8
by: Mike | last post by:
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...
11
by: Nurit N | last post by:
This is the third newsgroup that I'm posting my problem. I'm sorry for the multiple posts but the matter becoming urgent. I hope this is the right place for it... I have created a very...
3
by: Haldun ALIML | last post by:
Suppose that you have below property in some class, #if DEBUG public string DebugInfo { get { return "INDEX : " + _name + "\n" + "Index Owner : " + _owner.Name + "\n" + "Index Column Count:...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.