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. The Lounge
  3. Cool VS IDE trick

Cool VS IDE trick

Scheduled Pinned Locked Moved The Lounge
visual-studiocsharpdatabasesql-servercom
12 Posts 8 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.
  • F Offline
    F Offline
    FlashMerlot
    wrote on last edited by
    #1

    Some one named "Vasco" on Experts-Exchange came up with this one. Using Visual Studio, I often build strings containing ... \r \n \t \" ... for things like dynamic JavaScripts, dynamic TSQL, dynamic street address blocks, etc. But sometimes I want to stop in debug mode, look at the IDE's LOCALS or AUTO tab and "see" what the final string looks like. Unfortunately, the string is shown with \r\n\t ... USELESS for cut-n-paste to Query Analyzer or really for ANYTHING ELSE!!!! Vasco's solution: Use the Immediate window of VS (Ctrl+Alt+I), and then just use some code lines: System.Diagnostics.Debug.WriteLine( MyStringVar ) System.Windows.Forms.MessageBox.Show( MyStringVar ) Shazam .... all replacement substutions are made and you can even CUT-N-PASTE the exact text results ... COOL! FlashMerlot http://qpop.com

    J G 2 Replies Last reply
    0
    • F FlashMerlot

      Some one named "Vasco" on Experts-Exchange came up with this one. Using Visual Studio, I often build strings containing ... \r \n \t \" ... for things like dynamic JavaScripts, dynamic TSQL, dynamic street address blocks, etc. But sometimes I want to stop in debug mode, look at the IDE's LOCALS or AUTO tab and "see" what the final string looks like. Unfortunately, the string is shown with \r\n\t ... USELESS for cut-n-paste to Query Analyzer or really for ANYTHING ELSE!!!! Vasco's solution: Use the Immediate window of VS (Ctrl+Alt+I), and then just use some code lines: System.Diagnostics.Debug.WriteLine( MyStringVar ) System.Windows.Forms.MessageBox.Show( MyStringVar ) Shazam .... all replacement substutions are made and you can even CUT-N-PASTE the exact text results ... COOL! FlashMerlot http://qpop.com

      J Offline
      J Offline
      Jeremy Falcon
      wrote on last edited by
      #2

      I'm sure somebody's gonna flame me for this, but... VB's been having that for years. In fact, where you do think the "Immediate Window" came from? Also, the debugger in VC++ never showed show the escape sequences for me at least. Copying the text sucks hard, but you can at least see it. Jeremy Falcon

      C 1 Reply Last reply
      0
      • J Jeremy Falcon

        I'm sure somebody's gonna flame me for this, but... VB's been having that for years. In fact, where you do think the "Immediate Window" came from? Also, the debugger in VC++ never showed show the escape sequences for me at least. Copying the text sucks hard, but you can at least see it. Jeremy Falcon

        C Offline
        C Offline
        Colin Angus Mackay
        wrote on last edited by
        #3

        Jeremy Falcon wrote: VB's been having that for years. In fact, where you do think the "Immediate Window" came from? I can also think of another system that had something similar back to 1989. But it was unix based. Also: VB's been having = VB has been having... Wow! So many auxilliary verbs. :-D


        "If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell Can't manage to P/Invoke that Win32 API in .NET? Why not do interop the wiki way!

        D J 2 Replies Last reply
        0
        • C Colin Angus Mackay

          Jeremy Falcon wrote: VB's been having that for years. In fact, where you do think the "Immediate Window" came from? I can also think of another system that had something similar back to 1989. But it was unix based. Also: VB's been having = VB has been having... Wow! So many auxilliary verbs. :-D


          "If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell Can't manage to P/Invoke that Win32 API in .NET? Why not do interop the wiki way!

          D Offline
          D Offline
          David Stone
          wrote on last edited by
          #4

          >Wow! So many auxilliary verbs. Excuse him, he's from the south... :rolleyes:


          Lest some forgot their humour pill this morning: I am writing this with Moz (actually FireFox but still Moz) and love the damned browser. It's a joke, see. -Paul Watson on FireFox

          J R 2 Replies Last reply
          0
          • D David Stone

            >Wow! So many auxilliary verbs. Excuse him, he's from the south... :rolleyes:


            Lest some forgot their humour pill this morning: I am writing this with Moz (actually FireFox but still Moz) and love the damned browser. It's a joke, see. -Paul Watson on FireFox

            J Offline
            J Offline
            Jeremy Falcon
            wrote on last edited by
            #5

            :-D Jeremy Falcon

            1 Reply Last reply
            0
            • C Colin Angus Mackay

              Jeremy Falcon wrote: VB's been having that for years. In fact, where you do think the "Immediate Window" came from? I can also think of another system that had something similar back to 1989. But it was unix based. Also: VB's been having = VB has been having... Wow! So many auxilliary verbs. :-D


              "If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell Can't manage to P/Invoke that Win32 API in .NET? Why not do interop the wiki way!

              J Offline
              J Offline
              Jorgen Sigvardsson
              wrote on last edited by
              #6

              Wow. Someone has either a grudge against you, unix or your grammatical skills. -- Denn du bist, was du isst! Und ihr wisst, was es ist! Es ist mein Teil...?

              J 1 Reply Last reply
              0
              • F FlashMerlot

                Some one named "Vasco" on Experts-Exchange came up with this one. Using Visual Studio, I often build strings containing ... \r \n \t \" ... for things like dynamic JavaScripts, dynamic TSQL, dynamic street address blocks, etc. But sometimes I want to stop in debug mode, look at the IDE's LOCALS or AUTO tab and "see" what the final string looks like. Unfortunately, the string is shown with \r\n\t ... USELESS for cut-n-paste to Query Analyzer or really for ANYTHING ELSE!!!! Vasco's solution: Use the Immediate window of VS (Ctrl+Alt+I), and then just use some code lines: System.Diagnostics.Debug.WriteLine( MyStringVar ) System.Windows.Forms.MessageBox.Show( MyStringVar ) Shazam .... all replacement substutions are made and you can even CUT-N-PASTE the exact text results ... COOL! FlashMerlot http://qpop.com

                G Offline
                G Offline
                George_Seremetidis
                wrote on last edited by
                #7

                It's good to see that the VS debugger is starting to get to where the Borland debugger was 12 years ago.

                T 1 Reply Last reply
                0
                • G George_Seremetidis

                  It's good to see that the VS debugger is starting to get to where the Borland debugger was 12 years ago.

                  T Offline
                  T Offline
                  Tim Smith
                  wrote on last edited by
                  #8

                  Now if Borland didn't suck and lock up Athlon 64 computers. Just last month I convinced my project manager to let me dump Borland and use MSVC. I feel like an icepick has been removed from my eye. BTW Borland's Builder 6 debugger is trash. BTW, I hate Borland just in case you haven't noticed. It has something to do with not enjoying the pain of an IDE that more crashes than IE has security holes. Tim Smith I'm going to patent thought. I have yet to see any prior art.

                  T G 2 Replies Last reply
                  0
                  • T Tim Smith

                    Now if Borland didn't suck and lock up Athlon 64 computers. Just last month I convinced my project manager to let me dump Borland and use MSVC. I feel like an icepick has been removed from my eye. BTW Borland's Builder 6 debugger is trash. BTW, I hate Borland just in case you haven't noticed. It has something to do with not enjoying the pain of an IDE that more crashes than IE has security holes. Tim Smith I'm going to patent thought. I have yet to see any prior art.

                    T Offline
                    T Offline
                    Tim Smith
                    wrote on last edited by
                    #9

                    *sigh* I'm not bitter. :) Tim Smith I'm going to patent thought. I have yet to see any prior art.

                    1 Reply Last reply
                    0
                    • J Jorgen Sigvardsson

                      Wow. Someone has either a grudge against you, unix or your grammatical skills. -- Denn du bist, was du isst! Und ihr wisst, was es ist! Es ist mein Teil...?

                      J Offline
                      J Offline
                      Jeremy Falcon
                      wrote on last edited by
                      #10

                      What grammatical skills? :-D Don't worry, I don't take none of this stuff personally. (yes, the double negative was on purpose) Jeremy Falcon

                      1 Reply Last reply
                      0
                      • D David Stone

                        >Wow! So many auxilliary verbs. Excuse him, he's from the south... :rolleyes:


                        Lest some forgot their humour pill this morning: I am writing this with Moz (actually FireFox but still Moz) and love the damned browser. It's a joke, see. -Paul Watson on FireFox

                        R Offline
                        R Offline
                        Richard Jones
                        wrote on last edited by
                        #11

                        Excuse him, he's from the south.. Like in Fawlty Towers: "He's from Barcelona." "Ohh" Canada has 6 zones, none of which are erogenous.

                        1 Reply Last reply
                        0
                        • T Tim Smith

                          Now if Borland didn't suck and lock up Athlon 64 computers. Just last month I convinced my project manager to let me dump Borland and use MSVC. I feel like an icepick has been removed from my eye. BTW Borland's Builder 6 debugger is trash. BTW, I hate Borland just in case you haven't noticed. It has something to do with not enjoying the pain of an IDE that more crashes than IE has security holes. Tim Smith I'm going to patent thought. I have yet to see any prior art.

                          G Offline
                          G Offline
                          George_Seremetidis
                          wrote on last edited by
                          #12

                          I can understand your pain, like any developer you want to get on and do your work and maybe even enjoy it. I'm really suprised at the problems you are having. I've always had good results from Borland tools. I must admit though, I havn't used them for about 3 years, and now I do everything in VS.NET. I hate MS, but not because of their product, most of it is good. But why do they need to play dirty? They can still be a very successful company without resorting to criminal and unethical activities.

                          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