<?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: Testing custom widget in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/testing-custom-widget/m-p/782238#M2765</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cool, an answer from the Main Man himself! Here's what I understand: you can set breakpoints in the browser's debugger window and see where errors arise in your JS. Then you'd need to use an IDE or a text editor (I'm using Atom) to edit the JS directly. Does that sound right? Thanks again for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Oct 2019 15:22:49 GMT</pubDate>
    <dc:creator>DrewPhillips2</dc:creator>
    <dc:date>2019-10-28T15:22:49Z</dc:date>
    <item>
      <title>Testing custom widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/testing-custom-widget/m-p/782235#M2762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I searched the forums and didn't see what I was looking for - please tell me if this question is a duplicate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm a beginner coder trying to customize a widget. I have ~2 years of experience with python scripting but only a passing familiarity with JS and larger web projects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is: how can I debug a Widget that I've customized? At this point I'm just playing around with official widgets to see how modifying things changes the widget. However, any error I make means that the widget just doesn't load and doesn't offer me any debugging info. Is this done through console.log? Or something more web-developer-y?&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2019 22:02:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/testing-custom-widget/m-p/782235#M2762</guid>
      <dc:creator>DrewPhillips2</dc:creator>
      <dc:date>2019-10-24T22:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: Testing custom widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/testing-custom-widget/m-p/782236#M2763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Drew,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Normally you will see some error in the browsers web console as to why the widget is bombing. Now it is true that there are some situations where the widget will not load and there is nothing shown in the console but this is an exception. I normally use Chrome dev tools to add breakpoints and inspect the code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2019 13:14:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/testing-custom-widget/m-p/782236#M2763</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-10-25T13:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: Testing custom widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/testing-custom-widget/m-p/782237#M2764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;put a "debugger;" statement at the top of your custom code and make sure the browser's devtools are open. you'll hit the breakpoint and&amp;nbsp;take it from there with the debugging tools.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Oct 2019 23:01:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/testing-custom-widget/m-p/782237#M2764</guid>
      <dc:creator>shaylavi</dc:creator>
      <dc:date>2019-10-27T23:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: Testing custom widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/testing-custom-widget/m-p/782238#M2765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cool, an answer from the Main Man himself! Here's what I understand: you can set breakpoints in the browser's debugger window and see where errors arise in your JS. Then you'd need to use an IDE or a text editor (I'm using Atom) to edit the JS directly. Does that sound right? Thanks again for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2019 15:22:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/testing-custom-widget/m-p/782238#M2765</guid>
      <dc:creator>DrewPhillips2</dc:creator>
      <dc:date>2019-10-28T15:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: Testing custom widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/testing-custom-widget/m-p/782239#M2766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Correct.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2019 15:54:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/testing-custom-widget/m-p/782239#M2766</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-10-28T15:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: Testing custom widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/testing-custom-widget/m-p/782240#M2767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's an alternative to adding breakpoints in the Developer Tools Debugger, right? If I do that will I have to disable those breakpoints when I deploy the app?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2019 16:52:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/testing-custom-widget/m-p/782240#M2767</guid>
      <dc:creator>DrewPhillips2</dc:creator>
      <dc:date>2019-10-28T16:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: Testing custom widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/testing-custom-widget/m-p/782241#M2768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Adding&amp;nbsp;a "debugger" command word into your code would have to be removed when you are done with your debugging or before deployment of your code. That is actually why I rarely use them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just run the app, go to developer tools, click Sources tab then hit Ctrl+P, type "Widget.js" find my Widget.js I am interested in and click a code line number to add my break point. Then refresh the app and it will then break on that line (if I still have my developer tools window open).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2019 17:09:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/testing-custom-widget/m-p/782241#M2768</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-10-28T17:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: Testing custom widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/testing-custom-widget/m-p/782242#M2769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As Robert said, they should be removed.&amp;nbsp;It's not best practice to leave those lines around in your code but generally speaking, the users will not experience them as they respond only when the devtools tab is opened. You can also wrap them with an "if" condition.. there are many ways to approach this but&amp;nbsp;they should be definitely cleaned once you're done testing.&lt;/P&gt;&lt;P&gt;I use them for small blocks and usually&amp;nbsp;when I'm not sure what I'm looking for. They act like (hardcoded) breakpoints and I think its a good way to start with web development.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2019 00:30:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/testing-custom-widget/m-p/782242#M2769</guid>
      <dc:creator>shaylavi</dc:creator>
      <dc:date>2019-10-29T00:30:00Z</dc:date>
    </item>
  </channel>
</rss>

