Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Console

Console

Scheduled Pinned Locked Moved ASP.NET
questioncsharpvisual-studio
8 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sroberts82
    wrote on last edited by
    #1

    Hi, This is a really basic question but I cant find the answer anywhere. The function console.write, where does it write to?? I dont see any results in my visual studio console, is there a file somewhere?

    S 1 Reply Last reply
    0
    • S sroberts82

      Hi, This is a really basic question but I cant find the answer anywhere. The function console.write, where does it write to?? I dont see any results in my visual studio console, is there a file somewhere?

      S Offline
      S Offline
      sasire18
      wrote on last edited by
      #2

      hi even that i dont know you can try it using response.write though its a bad way of coding to see the message or you can try this style of coding Response.Write(se.Message + "

      "); Respose.Write("select "+select) or you can redirect the errors in some page like Response.Write("Error.aspx") Ithink this will help you sasi -- modified at 4:39 Friday 30th December, 2005

      B 1 Reply Last reply
      0
      • S sasire18

        hi even that i dont know you can try it using response.write though its a bad way of coding to see the message or you can try this style of coding Response.Write(se.Message + "

        "); Respose.Write("select "+select) or you can redirect the errors in some page like Response.Write("Error.aspx") Ithink this will help you sasi -- modified at 4:39 Friday 30th December, 2005

        B Offline
        B Offline
        ben_leah
        wrote on last edited by
        #3

        System.Diagnostics.Debug.WriteLine() will write to you Immediate Window.

        B 1 Reply Last reply
        0
        • B ben_leah

          System.Diagnostics.Debug.WriteLine() will write to you Immediate Window.

          B Offline
          B Offline
          ben_leah
          wrote on last edited by
          #4

          Actually it might be the Output window, but you get the drift

          S 1 Reply Last reply
          0
          • B ben_leah

            Actually it might be the Output window, but you get the drift

            S Offline
            S Offline
            sroberts82
            wrote on last edited by
            #5

            Hi, thanks for response, I tried that but I cant see my messages. Is there even an output file , something like catalina.out in java that I can write to?

            B 1 Reply Last reply
            0
            • S sroberts82

              Hi, thanks for response, I tried that but I cant see my messages. Is there even an output file , something like catalina.out in java that I can write to?

              B Offline
              B Offline
              ben_leah
              wrote on last edited by
              #6

              From the menu ; View --> Other Windows --> Output will display your output window. Anything written by System.Diagnostics.Debug.WriteLine("A message"); will be written to the Output window. Trust me, ive used it alot. Try sticking a breakpoint in and making sure that this Debug.WriteLine is actually being called.

              S 1 Reply Last reply
              0
              • B ben_leah

                From the menu ; View --> Other Windows --> Output will display your output window. Anything written by System.Diagnostics.Debug.WriteLine("A message"); will be written to the Output window. Trust me, ive used it alot. Try sticking a breakpoint in and making sure that this Debug.WriteLine is actually being called.

                S Offline
                S Offline
                sroberts82
                wrote on last edited by
                #7

                Yeah thats what I was looking in. The only thing is maybe the way I run it. I copy project over to IIS and run from there. How do you run yours?

                B 1 Reply Last reply
                0
                • S sroberts82

                  Yeah thats what I was looking in. The only thing is maybe the way I run it. I copy project over to IIS and run from there. How do you run yours?

                  B Offline
                  B Offline
                  ben_leah
                  wrote on last edited by
                  #8

                  Sorry, i thought you were running you project from within VS. I dont know of a mechanism to write debug output once the project is deployed. Apart from writing your own Logger?

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups