(window.webpackJsonp=window.webpackJsonp||[]).push([[3024],{3432:function(e,t,a){"use strict";a.r(t);var s=a(31),o=Object(s.a)({},(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[a("h1",{attrs:{id:"debugging"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#debugging"}},[e._v("#")]),e._v(" Debugging")]),e._v(" "),a("h2",{attrs:{id:"start-remote-js-debugging-in-android"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#start-remote-js-debugging-in-android"}},[e._v("#")]),e._v(" Start Remote JS Debugging in Android")]),e._v(" "),a("p",[e._v("You can start the remote debugging from Developer menu. After selecting the enable remote debugging it will open Google Chrome, So that you can log the output into your console. You can also write debugger syntax into your js code.")]),e._v(" "),a("h2",{attrs:{id:"using-console-log"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#using-console-log"}},[e._v("#")]),e._v(" Using console.log()")]),e._v(" "),a("p",[e._v("You can print log message in the terminal using "),a("code",[e._v("console.log()")]),e._v(". To do so, open a new terminal and run following command for Android:")]),e._v(" "),a("div",{staticClass:"language-js extra-class"},[a("pre",{pre:!0,attrs:{class:"language-js"}},[a("code",[e._v("react"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v("-")]),e._v("native log"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v("-")]),e._v("android\n\n")])])]),a("p",[e._v("or following command if you are using iOS:")]),e._v(" "),a("div",{staticClass:"language-js extra-class"},[a("pre",{pre:!0,attrs:{class:"language-js"}},[a("code",[e._v("react"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v("-")]),e._v("native log"),a("span",{pre:!0,attrs:{class:"token operator"}},[e._v("-")]),e._v("ios\n\n")])])]),a("p",[e._v("You will now start to see all the log message in this terminal")]),e._v(" "),a("h4",{attrs:{id:"syntax"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#syntax"}},[e._v("#")]),e._v(" Syntax")]),e._v(" "),a("ul",[a("li",[e._v("debugger;")])])])}),[],!1,null,null,null);t.default=o.exports}}]);