snipt

Ctrl+h for KB shortcuts

C#

Debug Xaml

1
2
3
4
 PresentationTraceSources.DataBindingSource.Listeners.Add(
                    new ConsoleTraceListener());

     PresentationTraceSources.DataBindingSource.Switch.Level = SourceLevels.Error;
https://snipt.net/embed/fc6f5b8865a83ae302e53b9c0f0b404c/
https://snipt.net/raw/fc6f5b8865a83ae302e53b9c0f0b404c/
fc6f5b8865a83ae302e53b9c0f0b404c
csharp
C#
4
2016-09-22T06:10:05
True
False
False
Oct 24, 2013 at 12:05 PM
/api/public/snipt/89885/
debug-xaml
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a> <span class="n">PresentationTraceSources</span><span class="p">.</span><span class="n">DataBindingSource</span><span class="p">.</span><span class="n">Listeners</span><span class="p">.</span><span class="n">Add</span><span class="p">(</span> </span><span id="L-2"><a name="L-2"></a> <span class="k">new</span> <span class="nf">ConsoleTraceListener</span><span class="p">());</span> </span><span id="L-3"><a name="L-3"></a> </span><span id="L-4"><a name="L-4"></a> <span class="n">PresentationTraceSources</span><span class="p">.</span><span class="n">DataBindingSource</span><span class="p">.</span><span class="n">Switch</span><span class="p">.</span><span class="n">Level</span> <span class="p">=</span> <span class="n">SourceLevels</span><span class="p">.</span><span class="n">Error</span><span class="p">;</span> </span></pre></div> </td></tr></table>
debugging, wpf, xaml

Text only

Fill in form with test results.

1
2
3
4
5
6
$("input[type='text']").val("test"); 
$("input[name='email']").val("rick@builderdesigns.com");
$("input[type='email']").val("rick@builderdesigns.com");
$("textarea").val("This is a test.");
$("select").each(function(){$(this).children().last().attr("selected","selected");});
$("input[type='checkbox']").attr('checked', true);
https://snipt.net/embed/0c8821e4e847c0fd4ac03b8fdbb672de/
https://snipt.net/raw/0c8821e4e847c0fd4ac03b8fdbb672de/
0c8821e4e847c0fd4ac03b8fdbb672de
text
Text only
6
2016-09-21T13:47:04
True
False
False
/api/public/snipt/81249/
fill-in-form-with-test-results
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a> <a href="#L-6">6</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a>$(&quot;input[type=&#39;text&#39;]&quot;).val(&quot;test&quot;); </span><span id="L-2"><a name="L-2"></a>$(&quot;input[name=&#39;email&#39;]&quot;).val(&quot;rick@builderdesigns.com&quot;); </span><span id="L-3"><a name="L-3"></a>$(&quot;input[type=&#39;email&#39;]&quot;).val(&quot;rick@builderdesigns.com&quot;); </span><span id="L-4"><a name="L-4"></a>$(&quot;textarea&quot;).val(&quot;This is a test.&quot;); </span><span id="L-5"><a name="L-5"></a>$(&quot;select&quot;).each(function(){$(this).children().last().attr(&quot;selected&quot;,&quot;selected&quot;);}); </span><span id="L-6"><a name="L-6"></a>$(&quot;input[type=&#39;checkbox&#39;]&quot;).attr(&#39;checked&#39;, true); </span></pre></div> </td></tr></table>
"dummy info", debugging, forms, test, testing

Text only

Find Process Id IIS is running on

1
2
3
C:\WINDOWS\system32>cscript.exe iisapp.vbs

Once you know the process id you can attach to it in Visual Studio and debug.
https://snipt.net/embed/98269ea4e904ce8c85b4679467ada522/
https://snipt.net/raw/98269ea4e904ce8c85b4679467ada522/
98269ea4e904ce8c85b4679467ada522
text
Text only
3
2016-09-22T06:10:13
True
False
False
/api/public/snipt/40584/
find-process-id-iis-is-running-on
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a>C:\WINDOWS\system32&gt;cscript.exe iisapp.vbs </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a>Once you know the process id you can attach to it in Visual Studio and debug. </span></pre></div> </td></tr></table>
"Visual Studio", ISS, debugging

Text only

TextMate Bundle for PHP that I call Suitcase activated with 'sc'+tab for easily echoing array type variables in a browser readable output.

1
2
3
${1:echo} "${2:name_of_array} = <br /><pre>";
${1:echo} print_r(\$${2});
${1:echo} "</pre>";$0
https://snipt.net/embed/b87be31afd84d7555301d166de362aaa/
https://snipt.net/raw/b87be31afd84d7555301d166de362aaa/
b87be31afd84d7555301d166de362aaa
text
Text only
3
2016-09-22T06:10:36
True
False
False
/api/public/snipt/2005/
textmate-bundle-for-php-that-i-call-suitcase-activated-with-sctab-for-easily-echoing-array-type-variables-in-a-browser-readable-output
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a>${1:echo} &quot;${2:name_of_array} = &lt;br /&gt;&lt;pre&gt;&quot;; </span><span id="L-2"><a name="L-2"></a>${1:echo} print_r(\$${2}); </span><span id="L-3"><a name="L-3"></a>${1:echo} &quot;&lt;/pre&gt;&quot;;$0 </span></pre></div> </td></tr></table>
array, bundle, debugging, echo, output, php, print, print_r, textmate
Copyrighted, illegal, or inappropriate content? Email support@snipt.net.