Solved

how to use debug.print in vb.net 2008.

Posted on 2013-05-13
5
381 Views
Last Modified: 2013-05-15
Hi, I am unable to view debug.Print in vb.net under Immediate Window. I do insert "Import System.Diagnostics.Debug" in application form as well. Please do advice
0
Comment
Question by:TITO2009
  • 2
  • 2
5 Comments
 
LVL 42

Expert Comment

by:sedgwick
ID: 39160736
You can access the Output Window from a WinForms project in Debug Mode. Console.Writeline will write to it and be visible.

Go for View > Other Windows > Output from the IDE menu, if it's not visible by default.


If you want to stick to Debug.Print then you can access this with

Debug > Windows > Immediate.
http://vbcity.com/forums/t/155007.aspx
0
 

Author Comment

by:TITO2009
ID: 39160838
Hi , thanks for prompt reply, i am using forms and much prefer to use debug.print

i do insert code to testing purpose "Debug.Print ("TESTING")". I did open the debug>Windows>Immediate window. I do insert break at this point and step Into to look step by step unfortunately nothing appears in my Immediate window. Do I missing any properties to in Tools>Options to check in?
0
 
LVL 69

Expert Comment

by:Éric Moreau
ID: 39160887
are you in Debug or Release mode?
0
 

Author Comment

by:TITO2009
ID: 39160903
i am in Debug mode.
0
 
LVL 69

Accepted Solution

by:
Éric Moreau earned 500 total points
ID: 39161033
just a minute, it is not the Immediate Window anymore. It is now the "Output Window" CTRL-ALT-O
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now