473,408 Members | 2,405 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,408 software developers and data experts.

debug.print

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")

none of the above prints in the immediate window
1) Where do they print? (am I missing 1 window?)
2) How do I print to the immediate window?

TIA + MERRY XMAS
Guy Cohen

Dec 25 '07 #1
4 3458
Guy,

Can you look in your Output window?

Cor
Dec 25 '07 #2
Hi Cor

How do I do that?
I know how to show the immediate window (ctrl+g)
I did not see any "show output window" menu/sub menu
I looked in "Debug"->"Windows"

Please kindly show me what to click (menu/key combination)
TIA
Guy

"Cor Ligthert[MVP]" wrote:
Guy,

Can you look in your Output window?

Cor
Dec 25 '07 #3
Guy,

You see it in your view menu

ctrl alt O

Cor
Dec 25 '07 #4
OK.

Here is what I found in the IDE
1. I can click "View"->"Output" (ctrl+alt+o)
2. I can redirect all output messaages to the immediate window:

a. Click "Tools"->"Options"
b. Go to "Debugging" node (left side of the options child screen)
c. Check "Redirect all output window text to the immediate window"

I wish option c was a default ... :)
....at least when we choose environment->keyboard->visual basic 6....

"Guy Cohen" wrote:
Hi Cor

How do I do that?
I know how to show the immediate window (ctrl+g)
I did not see any "show output window" menu/sub menu
I looked in "Debug"->"Windows"

Please kindly show me what to click (menu/key combination)
TIA
Guy

"Cor Ligthert[MVP]" wrote:
Guy,

Can you look in your Output window?

Cor
Dec 25 '07 #5

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

Similar topics

9
by: Dan Perl | last post by:
Is there a mechanism or an idiom for adding code for debugging so that it can easily be removed in the production code? I am thinking of something similar to the C/C++ preprocessor statements with...
2
by: Winston WOLFF | last post by:
What do people think about changing the parameters to logging.debug() to be more like the parameters to print? As you know, you can pass multiple parameters to print, and they are all printed out...
3
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...
7
by: Thomas Pecha | last post by:
Sorry for all who think this is easy, I was not able to handle this Coming from VB6 where with simple debug.print strAString you could write to debug window, I am totalling failing in vb.net...
5
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...
0
by: Alan Roberts | last post by:
In VB6 I have a routine that accepts a 2D array and prints it to the debug windows. The array can be of any type (eg integer, string, double etc).... Public Sub DPArray(ArrayToPrint As Variant)...
6
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...
2
by: FBM | last post by:
Hi, I am preparing project for submission and i'd like to allow the print out of debug messages. I know that with something like #define DEBUG #ifdef DEBUG print(X); #endif
2
by: Bill_DBA | last post by:
I have the following stored procedure that is called from the source of a transformation in a DTS package. The first parameter turns on PRINT debug messages. The second, when equals 1, turns on the...
4
by: Dom | last post by:
VB had a neat object called "Debug". You could use "Debug.Print()" in your code, and you could get useful debugging information in the immediate window. Is there something like this in CSharp? ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
0
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,...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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...

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.