<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Web App Builder Debugging in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/web-app-builder-debugging/m-p/424365#M2850</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;breakpoints work pretty well for me. It seems that where you place the breakpoints the code has not run yet. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I always like to start out with a console.log("Test") just to make sure I place the code right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe just put this in your widget.js&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;onOpen: function() {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log("Test")&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and go from there?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Apr 2015 20:09:36 GMT</pubDate>
    <dc:creator>TimWitt2</dc:creator>
    <dc:date>2015-04-01T20:09:36Z</dc:date>
    <item>
      <title>Web App Builder Debugging</title>
      <link>https://community.esri.com/t5/developers-questions/web-app-builder-debugging/m-p/424364#M2849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering if anyone could provide some guidance on how to debug custom made widgets in web app builder. I am trying to use the developer console in chrome and breakpoints do not seem to have any effect (I am guessing what is actually run on the browser is a minified version of the widget) as well as console logging/info does not seem to do anything. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know the command line has some debugging info but that seems to only be for the server. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would appreciate any help. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 19:55:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/web-app-builder-debugging/m-p/424364#M2849</guid>
      <dc:creator>MichaelFedak</dc:creator>
      <dc:date>2015-04-01T19:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Web App Builder Debugging</title>
      <link>https://community.esri.com/t5/developers-questions/web-app-builder-debugging/m-p/424365#M2850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;breakpoints work pretty well for me. It seems that where you place the breakpoints the code has not run yet. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I always like to start out with a console.log("Test") just to make sure I place the code right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe just put this in your widget.js&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;onOpen: function() {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.log("Test")&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and go from there?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 20:09:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/web-app-builder-debugging/m-p/424365#M2850</guid>
      <dc:creator>TimWitt2</dc:creator>
      <dc:date>2015-04-01T20:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: Web App Builder Debugging</title>
      <link>https://community.esri.com/t5/developers-questions/web-app-builder-debugging/m-p/424366#M2851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm agree with you - I think it is because you are using a minified version of the widget. I've used both Chrome and Firefox to debug custom widgets (and Web AppBuilder souce code). Are you able to debug any of the OOTB widgets from the developers edition?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 20:11:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/web-app-builder-debugging/m-p/424366#M2851</guid>
      <dc:creator>SamDrummond2</dc:creator>
      <dc:date>2015-04-01T20:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: Web App Builder Debugging</title>
      <link>https://community.esri.com/t5/developers-questions/web-app-builder-debugging/m-p/424367#M2852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The keyword "&lt;SPAN style="color: #2873ee;"&gt;&lt;STRONG&gt;debugger&lt;/STRONG&gt;&lt;/SPAN&gt;" in your code will cause your code to break at that location.&lt;/P&gt;&lt;P&gt;Its handy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2015 17:46:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/web-app-builder-debugging/m-p/424367#M2852</guid>
      <dc:creator>Drew</dc:creator>
      <dc:date>2015-05-25T17:46:58Z</dc:date>
    </item>
  </channel>
</rss>

