Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 457
  • Last Modified:

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

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
Rama Tito
Asked:
Rama Tito
  • 2
  • 2
1 Solution
 
Meir RivkinFull stack Software EngineerCommented:
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
 
Rama TitoProgrammerAuthor Commented:
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
 
Éric MoreauSenior .Net ConsultantCommented:
are you in Debug or Release mode?
0
 
Rama TitoProgrammerAuthor Commented:
i am in Debug mode.
0
 
Éric MoreauSenior .Net ConsultantCommented:
just a minute, it is not the Immediate Window anymore. It is now the "Output Window" CTRL-ALT-O
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now