473,748 Members | 6,370 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Is there a debug.print in CSharp?

Dom
VB had a neat object called "Debug". You could use "Debug.Prin t()" in
your code, and you could get useful debugging information in the
immediate window. Is there something like this in CSharp?

Dom

Apr 30 '07 #1
4 38274
Dom,
..NET has System.Diagnost ics.Debug.Print . This isn't specific to C# or
VB.NET as it is part of the .NET BCL.

http://msdn2.microsoft.com/en-us/lib...bug.print.aspx
--
Page Brooks
www.explosivedog.com
"Dom" <do********@gma il.comwrote in message
news:11******** **************@ n59g2000hsh.goo glegroups.com.. .
VB had a neat object called "Debug". You could use "Debug.Prin t()" in
your code, and you could get useful debugging information in the
immediate window. Is there something like this in CSharp?

Dom

Apr 30 '07 #2
Hello Dom,

The same stuff, only Debug.WriteLine ()

---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

DVB had a neat object called "Debug". You could use "Debug.Prin t()"
Din your code, and you could get useful debugging information in the
Dimmediate window. Is there something like this in CSharp?
D>
DDom
D>
Apr 30 '07 #3
Dom wrote:
VB had a neat object called "Debug". You could use "Debug.Prin t()" in
your code, and you could get useful debugging information in the
immediate window. Is there something like this in CSharp?
Yes, it's called Debug.Print. It's in the System.Diagnost ics namespace.
--
Tom Porterfield
Apr 30 '07 #4
Dom
Thanks to everyone.

Dom

On Apr 30, 2:59 pm, Dom <dolivas...@gma il.comwrote:
VB had a neat object called "Debug". You could use "Debug.Prin t()" in
your code, and you could get useful debugging information in the
immediate window. Is there something like this in CSharp?

Dom

Apr 30 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2898
by: Tim Marshall | last post by:
For an mdb or mde release, does having debug.print without the comment single quote add any processing time to the application? I assume an mde won't since debug.prints would not be compiled in the final product, right? But in an mdb, wouldn't debug.print add a bit of processing time, however miniscule? When developing, debug.prints still active where I don't need them can
3
16721
by: Gunawan | last post by:
In vs 6 I can use debug.print as alternatif debugging value at runtime. Which function that I can use in C# 2005 Express for windows form apps? TIA, Gunawan
6
41958
by: Christian Blackburn | last post by:
Hi Gang, I'm wondering what the VB6 equivalent of Debug.Print is? Thanks in Advance, Christian Blackburn
5
2852
by: MLH | last post by:
I use a fair number of debug.print statements. My apps are fairly well 'peppered' with them. I've often wondered if leaving them in the mdb, creating and rolling out an mde intended for use in the A97 runtime environment might ever be cause for concern. I've noticed no symptoms to indicate a problem. Are there drawbacks to this practice?
9
10849
by: David A. Beck | last post by:
When I do a debug.print("blabla") in VB (VS2005) it doesn't show up in the output window, what gives?
6
4118
by: swartzbill2000 | last post by:
Hello, I have a VB 2005 Express project with a TraceListener-derived class to route Debug.Print output to a log file. It works fine for Debug builds. What is the correct combination of changes to make it work in Release build? Bill
3
1514
by: Daniel Manes | last post by:
Strangest thing, but, if I put debug.print statements in my code, they simply get ignored when I run the project. Also, if I try to put a breakpoint on a line containing debug.print, it jumps down to the next available line of code when I run the project (or jumps down immediately if the project is already running). Another thing that's stopped working is the gray highlighting that shows which blocks of code were played prior to the...
4
3474
by: =?Utf-8?B?R3V5IENvaGVu?= | last post by:
Hi all I tried the (good old...)vb6 command debug.print and it does not work in vb.net 2005 I googled some and found these samples: Debug.WriteLine("hello") Console.WriteLine("hello") Trace.WriteLine("hello")
7
2630
MitchR
by: MitchR | last post by:
I am looking to capture the Debug.print of computers connected to the backend of my database. Using the Microsoft example I can see the list of computers connected to my backend. I would like to capture the information displayed in the debug.print and send to my self in an email. 'Output the list of all users in the current database. Debug.Print rs.Fields(0).Name, "", rs.Fields(1).Name, _ "", rs.Fields(2).Name, rs.Fields(3).Name...
0
8991
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9372
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8243
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6796
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6074
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4606
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4874
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2783
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2215
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.