Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>To actually see the JavaScript console select <code>DEBUG &gt; Windows &gt; JavaScript Console</code> in the Visual Studio menus. Then you can use the good old <a href="http://msdn.microsoft.com/en-us/library/windows/apps/hh696634.aspx"><code>console.log()</code></a> to write to it, but you can also use the related <code>WinJS</code> functions:</p> <p>There is <a href="http://msdn.microsoft.com/en-us/library/windows/apps/jj150612.aspx"><code>WinJS.log()</code></a> to log something after creating the function with <a href="http://msdn.microsoft.com/en-us/library/windows/apps/hh701617.aspx"><code>WinJS.Utilities.startLog()</code></a>:</p> <pre><code>WinJS.Utilities.startLog({type: "info", tags: "custom" }); WinJS.log("my message", "info", "custom"); </code></pre> <hr> <p>Here's some additional information on the <code>WinJS</code> logging functions:</p> <blockquote> <p><code>startLog(options)</code>: Configures a logger that writes messages containing the specified tags to the JavaScript console.</p> </blockquote> <p>The <code>options</code> object <strong>must</strong> contain a <code>type</code> which is supposed to be one of <code>error</code>, <code>warn</code>, <code>info</code> or <code>perf</code>. Unless you want to capture all log entries, also add <code>tags</code> to the object containing a space-separated list of tags you want to be logged.</p> <p><code>WinJS.log(message, tags, type)</code>: This function <strong>does not exist</strong> by default. However, it is created by your <code>startLog()</code> call. You could also create it manually but since you want logging to the console using <code>startLog()</code> is the way to go.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload