Cool VS IDE trick
-
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
-
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
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
-
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
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!
-
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!
>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
-
>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
:-D Jeremy Falcon
-
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!
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...?
-
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
It's good to see that the VS debugger is starting to get to where the Borland debugger was 12 years ago.
-
It's good to see that the VS debugger is starting to get to where the Borland debugger was 12 years ago.
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.
-
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.
-
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...?
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
-
>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
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.
-
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.
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.