debug.print

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?R3V5IENvaGVu?=

    #1

    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.WriteLi ne("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

  • Cor Ligthert[MVP]

    #2
    Re: debug.print

    Guy,

    Can you look in your Output window?

    Cor

    Comment

    • =?Utf-8?B?R3V5IENvaGVu?=

      #3
      Re: debug.print

      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

      Comment

      • Cor Ligthert[MVP]

        #4
        Re: debug.print

        Guy,

        You see it in your view menu

        ctrl alt O

        Cor

        Comment

        • =?Utf-8?B?R3V5IENvaGVu?=

          #5
          Re: debug.print

          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

          Comment

          Working...