<?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: How to Debug while developing Custom Visuals in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/How-to-Debug-while-developing-Custom-Visuals/m-p/497552#M15252</link>
    <description>&lt;P&gt;This is helpful but&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;or&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/17823"&gt;@v-viig&lt;/a&gt;&amp;nbsp;do either of you know how to actually stop the server from listenting? After running "pbiviz start" you get the message "Server listening on port 8080". If I want to stop listening and go back to command line how do I do this? The only way I can stop now is by closing the command prompt window entirely and reopening&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;UPDATE&lt;/STRONG&gt;-- found the answer, just press ctrl+C, then type "Y"&lt;/P&gt;</description>
    <pubDate>Thu, 23 Aug 2018 20:18:31 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-08-23T20:18:31Z</dc:date>
    <item>
      <title>How to Debug while developing Custom Visuals</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-Debug-while-developing-Custom-Visuals/m-p/187053#M5963</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Normally in Javascript while developing on the web I use console.log but with power BI I don't know how to debeug (except target.innerHTML)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any hint please ?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2017 13:51:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-Debug-while-developing-Custom-Visuals/m-p/187053#M5963</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-02T13:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to Debug while developing Custom Visuals</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-Debug-while-developing-Custom-Visuals/m-p/187600#M5979</link>
      <description>&lt;P&gt;&lt;EM&gt;RE: How to debug Custom Visuals&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I would say that using the &lt;STRONG&gt;Power BI Online&lt;/STRONG&gt;&amp;nbsp;-&amp;nbsp;&lt;STRONG&gt;developer tool&lt;/STRONG&gt; with adding &lt;STRONG&gt;decorator&lt;/STRONG&gt; + &lt;STRONG&gt;logException &lt;/STRONG&gt;in your Custom Visual &lt;STRONG&gt;source code&lt;/STRONG&gt; are perhaps your best choices when it comes to debugging Custom Visuals.&lt;BR /&gt;&lt;BR /&gt;Most of all, the &lt;STRONG&gt;developer tool&lt;/STRONG&gt; feature gives you a 'live' action of what's happening and thus avoids you to redundantly have to delete exisitng version&amp;nbsp;and reinsert a new version of the custom visual in &lt;STRONG&gt;Visualizations&lt;/STRONG&gt;&amp;nbsp;panel each time you want to bring a modification to your code.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;1. Browse and sign into your &lt;STRONG&gt;app.powerbi.com&lt;/STRONG&gt; account, then enable the live preview of&lt;STRONG&gt; developer visual&lt;/STRONG&gt; option by selecting the &lt;STRONG&gt;gear&lt;/STRONG&gt; icon then selecting &lt;STRONG&gt;Settings&lt;/STRONG&gt; menu option.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Debug01.png" style="width: 592px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/44186i659385D2FF224166/image-size/large?v=v2&amp;amp;px=999" role="button" title="Debug01.png" alt="Debug01.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;2. Then&amp;nbsp;under &lt;STRONG&gt;General&lt;/STRONG&gt; tab, select &lt;STRONG&gt;Developer&lt;/STRONG&gt; option and then make sure to have the&lt;STRONG&gt; Enable developer visual for testing&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;checkbox is activated.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Debug02.png" style="width: 491px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/44187i80B8354C1111AD54/image-size/large?v=v2&amp;amp;px=999" role="button" title="Debug02.png" alt="Debug02.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;3. In &lt;STRONG&gt;Visual Studio Code&lt;/STRONG&gt;, you can start debugging your custom visuals by first opening the&lt;STRONG&gt; Integrated Panel&lt;/STRONG&gt;&lt;BR /&gt;in root directory of your project [or using &lt;STRONG&gt;Command Prompt&lt;/STRONG&gt; ]then simply type:&lt;STRONG&gt; pbiviz start&lt;/STRONG&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Debug03.png" style="width: 600px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/44188iEFE20002A55C6676/image-size/large?v=v2&amp;amp;px=999" role="button" title="Debug03.png" alt="Debug03.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;4. This will establish a connection... [Note that the process will restart every time&amp;nbsp;a change of code is detected...]&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Debug04.png" style="width: 600px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/44189i3DE8ED23DD0AE65C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Debug04.png" alt="Debug04.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;5. In &lt;STRONG&gt;app.powerbi.com&lt;/STRONG&gt; simply select the&lt;STRONG&gt; Developer Visual&lt;/STRONG&gt; icon in &lt;STRONG&gt;Visualizations&lt;/STRONG&gt; panel. [Note that this acts mainly as your debugging channel and&amp;nbsp; will mainly focus on ONE componant at a time.]&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Debug06.png" style="width: 184px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/44190i078B9704045782EF/image-size/large?v=v2&amp;amp;px=999" role="button" title="Debug06.png" alt="Debug06.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;6. If you encounter similar error as image below while trying to preview your custom visual, &amp;nbsp;chances are you'll need to create &amp;nbsp;a trusted https server on your machine Before you can start, you will need to install an &lt;STRONG&gt;SSL certificate&lt;/STRONG&gt; which will allow visual assets to load in your web browser. Please refer to this link...&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://powerbi.microsoft.com/en-us/documentation/powerbi-custom-visuals-getting-started-with-developer-tools/" target="_blank"&gt;https://powerbi.microsoft.com/en-us/documentation/powerbi-custom-visuals-getting-started-with-developer-tools/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Debug07.png" style="width: 424px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/44191i18254B8C6127DEE3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Debug07.png" alt="Debug07.png" /&gt;&lt;/span&gt;&lt;BR /&gt;7. Last but not least...Dealing with &lt;STRONG&gt;breakpoints&lt;/STRONG&gt; and &lt;STRONG&gt;logException&lt;/STRONG&gt;. Whenever you're dealing with Custom Visuals code you&amp;nbsp;have to take into account that you're not really dealing directly with JavaScript code that sits in a Web page but a pbiviz custom visual... So one key factor to keep in mind is that the visuals content is entirely reloaded every time the custom visuals&lt;BR /&gt;is updated, making any breakpoints mostly unreachable or completely ignored. To work around this, you can use &lt;STRONG&gt;debugger&lt;/STRONG&gt; statements in your code.&amp;nbsp;It is recommended that you turn off auto-reload while using debugger in your code.&lt;BR /&gt;&lt;BR /&gt;A) To log exceptions in your visual add a similar&lt;STRONG&gt;&amp;nbsp;logExceptions()&lt;/STRONG&gt; function code to your visual to define an exception logging decorator:&lt;/P&gt;&lt;PRE&gt;module powerbi.extensibility.visual {
    export function logExceptions(): MethodDecorator {
        return function (target: Object, propertyKey: string, descriptor: TypedPropertyDescriptor&amp;lt;Function&amp;gt;)
        : TypedPropertyDescriptor&amp;lt;Function&amp;gt; {
            
            return {
                value: function () {
                    try {
                        return descriptor.value.apply(this, arguments);
                    } catch (e) {
                        console.error(e);
                        throw e;
                    }
                }
            }
        }
    }
}&lt;/PRE&gt;&lt;P&gt;B)Then, you can use this &lt;STRONG&gt;decorator&lt;/STRONG&gt; on any function to see error logging like this:&lt;/P&gt;&lt;PRE&gt;@logExceptions()
public update(options: VisualUpdateOptions) {
    console.log('Visual update', options);
    debugger; &amp;lt;------!!!
    this.target.innerHTML = `&amp;lt;p&amp;gt;Update count: &amp;lt;em&amp;gt;${(this.updateCount++)}&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;`;
}&lt;/PRE&gt;&lt;P&gt;You can always check following link for further infos..&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://github.com/Microsoft/PowerBI-visuals/blob/master/tools/debugging.md" target="_blank"&gt;https://github.com/Microsoft/PowerBI-visuals/blob/master/tools/debugging.md&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Sun, 04 Jun 2017 19:20:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-Debug-while-developing-Custom-Visuals/m-p/187600#M5979</guid>
      <dc:creator>MawashiKid</dc:creator>
      <dc:date>2017-06-04T19:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to Debug while developing Custom Visuals</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-Debug-while-developing-Custom-Visuals/m-p/359516#M10699</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;I try to use the mentioned logException() code but I get an error !&lt;/P&gt;&lt;DIV class="hover-row"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="hover-row"&gt;&lt;DIV&gt;&lt;DIV class="code"&gt;&lt;DIV class="monaco-tokenized-source"&gt;&lt;PRE&gt;[ts]
Der Typ "&amp;lt;T&amp;gt;(target: Object, propertyKey: string, descriptor: TypedPropertyDescriptor&amp;lt;Function&amp;gt;) =&amp;gt; TypedP..." kann dem Typ "MethodDecorator" nicht zugewiesen werden.
Die Typen der Parameter "descriptor" und "descriptor" sind nicht kompatibel.
Der Typ "TypedPropertyDescriptor&amp;lt;T&amp;gt;" kann dem Typ "TypedPropertyDescriptor&amp;lt;Function&amp;gt;" nicht zugewiesen werden.
Der Typ "T" kann dem Typ "Function" nicht zugewiesen werden.
(local function)(): any&lt;/PRE&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="monaco-tokenized-source"&gt;&lt;SPAN class="mtk11"&gt;I tried it with an empty visual (after executing pbiviz new myVisual), so it cannot be the problem with the code. Is there any new method for handling debugging ??&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="monaco-tokenized-source"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="monaco-tokenized-source"&gt;&lt;SPAN class="mtk11"&gt;best regards,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="monaco-tokenized-source"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="monaco-tokenized-source"&gt;&lt;SPAN class="mtk11"&gt;feelfine&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 16 Feb 2018 12:41:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-Debug-while-developing-Custom-Visuals/m-p/359516#M10699</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-16T12:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to Debug while developing Custom Visuals</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-Debug-while-developing-Custom-Visuals/m-p/360581#M10743</link>
      <description>&lt;P&gt;You might try to use something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;module powerbi.extensibility.visual {
    export function logExceptions(): MethodDecorator {
        return function (target: Object, propertyKey: string, descriptor: TypedPropertyDescriptor&amp;lt;any&amp;gt;)
            : TypedPropertyDescriptor&amp;lt;any&amp;gt; {

            return {
                value: function () {
                    try {
                        return descriptor.value.apply(this, arguments);
                    } catch (e) {
                        console.error(e);
                        throw e;
                    }
                }
            }
        }
    }
}&lt;/PRE&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Ignat Vilesov,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Software Engineer&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #333333;"&gt;Microsoft Power BI Custom Visuals&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="mailto:pbicvsupport@microsoft.com" target="_blank"&gt;&lt;SPAN&gt;pbicvsupport@microsoft.com&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2018 13:16:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-Debug-while-developing-Custom-Visuals/m-p/360581#M10743</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2018-02-19T13:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to Debug while developing Custom Visuals</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-Debug-while-developing-Custom-Visuals/m-p/361248#M10773</link>
      <description>&lt;P&gt;Thank you. Yes it worked as expected.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2018 09:18:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-Debug-while-developing-Custom-Visuals/m-p/361248#M10773</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-20T09:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to Debug while developing Custom Visuals</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-Debug-while-developing-Custom-Visuals/m-p/497552#M15252</link>
      <description>&lt;P&gt;This is helpful but&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;or&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/17823"&gt;@v-viig&lt;/a&gt;&amp;nbsp;do either of you know how to actually stop the server from listenting? After running "pbiviz start" you get the message "Server listening on port 8080". If I want to stop listening and go back to command line how do I do this? The only way I can stop now is by closing the command prompt window entirely and reopening&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;UPDATE&lt;/STRONG&gt;-- found the answer, just press ctrl+C, then type "Y"&lt;/P&gt;</description>
      <pubDate>Thu, 23 Aug 2018 20:18:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-Debug-while-developing-Custom-Visuals/m-p/497552#M15252</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-23T20:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to Debug while developing Custom Visuals</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-Debug-while-developing-Custom-Visuals/m-p/499237#M15341</link>
      <description>&lt;P&gt;Is point 7. of this solution still valid?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Upon adding the logExceptions() function, the error I get is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="hover-row"&gt;&lt;DIV&gt;&lt;DIV class="code"&gt;&lt;DIV class="monaco-tokenized-source"&gt;&lt;SPAN class="mtk1"&gt;[ts]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="mtk1"&gt;Type '&amp;lt;T&amp;gt;(target: Object, propertyKey: string, descriptor: TypedPropertyDescriptor&amp;lt;Function&amp;gt;) =&amp;gt; TypedP...' is not assignable to type 'MethodDecorator'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="mtk1"&gt;Types of parameters 'descriptor' and 'descriptor' are incompatible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="mtk1"&gt;Type 'TypedPropertyDescriptor&amp;lt;T&amp;gt;' is not assignable to type 'TypedPropertyDescriptor&amp;lt;Function&amp;gt;'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="mtk1"&gt;Type 'T' is not assignable to type 'Function'.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="hover-row"&gt;&lt;DIV&gt;&lt;DIV class="code"&gt;&lt;DIV class="monaco-tokenized-source"&gt;&lt;SPAN class="mtk1"&gt;(&lt;/SPAN&gt;&lt;SPAN class="mtk13"&gt;local&lt;/SPAN&gt; &lt;SPAN class="mtk5"&gt;function&lt;/SPAN&gt;&lt;SPAN class="mtk1"&gt;)()&lt;/SPAN&gt;&lt;SPAN class="mtk17"&gt;:&lt;/SPAN&gt; &lt;SPAN class="mtk11"&gt;any&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 25 Aug 2018 16:25:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-Debug-while-developing-Custom-Visuals/m-p/499237#M15341</guid>
      <dc:creator>mikorym</dc:creator>
      <dc:date>2018-08-25T16:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to Debug while developing Custom Visuals</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-Debug-while-developing-Custom-Visuals/m-p/499262#M15343</link>
      <description>&lt;P&gt;I am going to answer my own question:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code block by &lt;SPAN class="UserName lia-user-name lia-user-rank-Moderator"&gt;&lt;A title="" href="https://community.powerbi.com/t5/user/viewprofilepage/user-id/17823" target="_self"&gt;&lt;SPAN class=""&gt;v-viig&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt; is slightly different and seems to work. In his code block, "&amp;lt;Function&amp;gt;" is replaced by "&amp;lt;any&amp;gt;" in two places.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;descriptor: TypedPropertyDescriptor&amp;lt;any&amp;gt;): TypedPropertyDescriptor&amp;lt;any&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 25 Aug 2018 17:45:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-Debug-while-developing-Custom-Visuals/m-p/499262#M15343</guid>
      <dc:creator>mikorym</dc:creator>
      <dc:date>2018-08-25T17:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to Debug while developing Custom Visuals</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-Debug-while-developing-Custom-Visuals/m-p/967042#M22639</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am developing a custom control using PowerBI tools for NodeJs and Visual Studio Code as IDE.&lt;/P&gt;&lt;P&gt;And I am having days trying to debug:, it says:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Cannot connect to runtime process, timeout after 10000ms -(reason cannot connect to the target: connect ECONNREFUSED 127.0.0.1:9229)&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;When i open "launch.json" i have it configured to be attach to the port, like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;launch.json&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"version"&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"0.2.0"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"configurations"&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;[&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"type"&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"node"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;n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fabric.microsoft.com/t5/user/viewprofilepage/user-id/17823"&gt;@v-viig&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/76080"&gt;@mikorym&lt;/a&gt;&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 14:57:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-Debug-while-developing-Custom-Visuals/m-p/967042#M22639</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-10T14:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to Debug while developing Custom Visuals</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-Debug-while-developing-Custom-Visuals/m-p/1019840#M23044</link>
      <description>&lt;P&gt;I don't think any of this will work for custom visuals written in R Script...&amp;nbsp;&amp;nbsp; In fact, I can't even get the "print" statement to work for my custom visuals that I'm trying to write in R Script...&lt;BR /&gt;&lt;BR /&gt;I need a way to debug R Script visuals because the R Scripting language is much easier to work with than JavaScript.&amp;nbsp; Yes, I am a former WebDeveloper and I know basic JavaScript, but the custom visuals SDK that Microsoft provides for Power BI seems to have a lot of: bloat; overhead; and, a notable learning curve.&amp;nbsp; On the other hand, R feels pretty straightforward assuming I can just figure out how to parse the dataset comming in from Power BI.&lt;BR /&gt;&lt;BR /&gt;The sad thing is I can't find an easy way to debug my R code once it's in Power BI.&amp;nbsp; Sure, I can debug it when I use tools &lt;U&gt;&lt;STRONG&gt;external&lt;/STRONG&gt;&lt;/U&gt; to Power BI, but I haven't figured out how do that within the Power BI context...&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2020 15:01:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-Debug-while-developing-Custom-Visuals/m-p/1019840#M23044</guid>
      <dc:creator>Shawn_Eary</dc:creator>
      <dc:date>2020-04-10T15:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to Debug while developing Custom Visuals</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-Debug-while-developing-Custom-Visuals/m-p/3865327#M51968</link>
      <description>&lt;P&gt;Debugger and console.log also work in this context.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 11:56:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-Debug-while-developing-Custom-Visuals/m-p/3865327#M51968</guid>
      <dc:creator>richardcalvert</dc:creator>
      <dc:date>2024-04-24T11:56:05Z</dc:date>
    </item>
  </channel>
</rss>

