<?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: Debugging custom visual PowerBI desktop errors in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Debugging-custom-visual-PowerBI-desktop-errors/m-p/257664#M7950</link>
    <description>&lt;P&gt;2017 no answer and no option to debug errors in power bi desktop. &amp;nbsp;The best we have seems to be the error message in the details you can copy from the error popup.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 22 Sep 2017 20:56:51 GMT</pubDate>
    <dc:creator>Ernesto</dc:creator>
    <dc:date>2017-09-22T20:56:51Z</dc:date>
    <item>
      <title>Debugging custom visual PowerBI desktop errors</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Debugging-custom-visual-PowerBI-desktop-errors/m-p/43029#M1314</link>
      <description>&lt;P&gt;So I have created a few custom visuals, and everytime it gets really anoying when you have to track down an error that only appears in powerbi desktop.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there anyway to attach a javascript debugger to the powerbi desktop process? That would really make debugging a lot easier.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Right now the error I'm getting are:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Error Message:

An error occurred while rendering the report.

Stack Trace:

Microsoft.Mashup.Host.Document.JavaScriptException: An error occurred while rendering the report.
   at :line 0

Invocation Stack Trace:

   at Microsoft.Mashup.Host.Document.ExceptionExtensions.GetCurrentInvocationStackTrace()
   at Microsoft.Mashup.Client.ClientShared.StackTraceInfo..ctor(String exceptionStackTrace, String invocationStackTrace)
   at Microsoft.Mashup.Client.ClientShared.FeedbackErrorInfo..ctor(String message, Nullable`1 errorCode, String requestId, Exception exception)
   at Microsoft.Mashup.Client.ClientShared.UnexpectedExceptionHandler.&amp;lt;&amp;gt;c__DisplayClass1.&amp;lt;HandleException&amp;gt;b__0()
   at Microsoft.Mashup.Host.Document.SynchronizationContextExtensions.&amp;lt;&amp;gt;c__DisplayClass3.&amp;lt;SendAndMarshalExceptions&amp;gt;b__0(Object null)
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Delegate.DynamicInvokeImpl(Object[] args)
   at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
   at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
   at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
   at System.Windows.Forms.Control.WndProc(Message&amp;amp; m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
   at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&amp;amp; msg)
   at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&amp;amp; msg)
   at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
   at Microsoft.Mashup.Client.ClientShared.WindowManager.ShowDialog[T](T form, IWin32Window owner)
   at Microsoft.PowerBI.Client.Program.&amp;lt;&amp;gt;c__DisplayClassc.&amp;lt;Main&amp;gt;b__0()
   at Microsoft.Mashup.Host.Document.ExceptionHandlerExtensions.HandleExceptions(IExceptionHandler exceptionHandler, Action action)
   at Microsoft.PowerBI.Client.Program.Main(String[] args)


JS Error Message
Script error.

&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So my custom visual gives me a script error, or maybe it is the powerbi desktop client, how would I ever know if I cant debug, or get some better error messages. Worst thing is that the error in the above case is periodic, so I can't reliably reproduce it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm running powerbi desktop&amp;nbsp;2.35.4399.601 64-bit (maj 2016) - on windows 10 enterprise. And my custom visual worked fine before the introduction of the sandbox feature (e.g. in the march powerbi desktop version).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2016 06:30:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Debugging-custom-visual-PowerBI-desktop-errors/m-p/43029#M1314</guid>
      <dc:creator>sjkp</dc:creator>
      <dc:date>2016-06-15T06:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging custom visual PowerBI desktop errors</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Debugging-custom-visual-PowerBI-desktop-errors/m-p/46040#M1386</link>
      <description>I'm having this exact problem, did you find a way around this? Or a way to debug?</description>
      <pubDate>Tue, 28 Jun 2016 08:26:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Debugging-custom-visual-PowerBI-desktop-errors/m-p/46040#M1386</guid>
      <dc:creator>markive</dc:creator>
      <dc:date>2016-06-28T08:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging custom visual PowerBI desktop errors</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Debugging-custom-visual-PowerBI-desktop-errors/m-p/257664#M7950</link>
      <description>&lt;P&gt;2017 no answer and no option to debug errors in power bi desktop. &amp;nbsp;The best we have seems to be the error message in the details you can copy from the error popup.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2017 20:56:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Debugging-custom-visual-PowerBI-desktop-errors/m-p/257664#M7950</guid>
      <dc:creator>Ernesto</dc:creator>
      <dc:date>2017-09-22T20:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging custom visual PowerBI desktop errors</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Debugging-custom-visual-PowerBI-desktop-errors/m-p/258328#M7970</link>
      <description>&lt;P&gt;There's no way to turn debugger mode one unfortunately but you might try to get more logs by enabling "Enable tracing" at Options of Power BI Desktop.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ignat Vilesov,&lt;/P&gt;&lt;P&gt;Software Engineer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Microsoft Power BI Custom Visuals&lt;/P&gt;&lt;P&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, 25 Sep 2017 09:13:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Debugging-custom-visual-PowerBI-desktop-errors/m-p/258328#M7970</guid>
      <dc:creator>v-viig</dc:creator>
      <dc:date>2017-09-25T09:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging custom visual PowerBI desktop errors</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Debugging-custom-visual-PowerBI-desktop-errors/m-p/3675363#M49291</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This help might come a little bit too late &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; , but if you are still having troubles with this issue or someone else is looking for answer, I have just written a blog how get Dev Tools visiblity in Power BI Desktop.&lt;/P&gt;&lt;P&gt;Please follow this link&amp;nbsp;&lt;A href="https://medium.com/@mikko.lahdeaho_45453/tackling-obstacles-in-power-bi-custom-visual-development-9f3572bd4f19" target="_blank"&gt;https://medium.com/@mikko.lahdeaho_45453/tackling-obstacles-in-power-bi-custom-visual-development-9f3572bd4f19&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Mikko&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 10:43:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Debugging-custom-visual-PowerBI-desktop-errors/m-p/3675363#M49291</guid>
      <dc:creator>mlahdeaho</dc:creator>
      <dc:date>2024-02-02T10:43:00Z</dc:date>
    </item>
  </channel>
</rss>

