<?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 Jmp applications in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Debugging-Jmp-applications/m-p/701121#M88566</link>
    <description>&lt;P&gt;This screen capture shows the "issue" - when included in the main script, script_B knows the variables of the &lt;FONT face="courier new,courier"&gt;Here&lt;/FONT&gt; Namespace of the main script (log of the left window).&lt;BR /&gt;But executed separately, script_B has it's own &lt;FONT face="courier new,courier"&gt;Here&lt;/FONT&gt; namespace.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is like designed:&lt;BR /&gt;&lt;LI-MESSAGE title="Essential Scripting for Efficiency and Reproducibility: Do Less to Do More (2019-US-TUT-290)" uid="225697" url="https://community.jmp.com/t5/Discovery-Summit-Tucson-2019/Essential-Scripting-for-Efficiency-and-Reproducibility-Do-Less/m-p/225697#U225697" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-tkb-thread lia-fa-icon lia-fa-tkb lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;... but it makes it impossible to run single lines directly from script_B for debugging.&lt;BR /&gt;-&amp;gt; How can I link the namespaces to allow me to debug script_B .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6341498291112w944h540r312" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6341498291112" data-account="6058004218001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6058004218001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6341498291112w944h540r312');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://community.jmp.com/t5/video/gallerypage/video-id/6341498291112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Nov 2023 20:22:15 GMT</pubDate>
    <dc:creator>hogi</dc:creator>
    <dc:date>2023-11-20T20:22:15Z</dc:date>
    <item>
      <title>Debugging Jmp applications</title>
      <link>https://community.jmp.com/t5/Discussions/Debugging-Jmp-applications/m-p/699986#M88481</link>
      <description>&lt;P&gt;Are there some tricks how to debug a Jmp application?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess the defailt way to do so is something like:&lt;/P&gt;&lt;P&gt;Use the Jmp debugger, add breakpoints, let the application code run and stop at the breakpoint, then check what is happening step by step ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I have to debug non-Application JSL code, I like it to have the freedom to run whatever code in the script at any time.&lt;/P&gt;&lt;P&gt;E.g. remove the modal setting of a report window, create the report window and then run some lines of code which are at another position in the jsl file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this also possible with applications from Application Builder?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) How to enable the Embedded log in Application Builder?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1700239488670.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/58878i0F4FB826C76C67DD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1700239488670.png" alt="hogi_0-1700239488670.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2)&amp;nbsp; For debugging manually generated Applications, I found&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;myApp = JMP App();
(myApp &amp;lt;&amp;lt; Get Namespace) &amp;lt;&amp;lt; Show Contents;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;When running an application from Application Builder I don't have a handle &lt;FONT face="courier new,courier"&gt;myApp&lt;/FONT&gt; which I can use to talk to the app.&lt;/P&gt;&lt;P&gt;Is there some command to get the namespace of the current app and "infiltrate" the code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;((current report() &amp;lt;&amp;lt; get App() ) &amp;lt;&amp;lt; get Namespace()) &amp;lt;&amp;lt; include Namespace in HERE&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;such that I can copy code snippets from the app and run them directly in a script window - with direct access to the Namespace of the running App?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3) If I make errors in my JSL code, JSL edotor will warn me or show an error message which helps me to find the error and to correct it.&lt;/P&gt;&lt;P&gt;If I open the source script of an Application and make a tiny error, Jmp will crash when I run the code with &lt;FONT face="courier new,courier"&gt;&amp;lt;&amp;lt; edit&lt;/FONT&gt; or &lt;FONT face="courier new,courier"&gt;&amp;lt;&amp;lt; run&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Any chance to change the source code with less punishment for my penalty points? Is there a pre-check routine which I can use before I dare to run the script?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2023 16:51:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Debugging-Jmp-applications/m-p/699986#M88481</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-11-17T16:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging Jmp applications</title>
      <link>https://community.jmp.com/t5/Discussions/Debugging-Jmp-applications/m-p/700343#M88507</link>
      <description>&lt;P&gt;Actually the same for included scripts - is there a possibility to manually execute code in the included script - with access to the HERE Namespace of the main script?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;main script:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to HERE(1);
::myNamespace = localHERE(); //*)
temp =5;
include ("script_inc.jsl");&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;included script:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;///////////////////////////
// to be able to manually execute code in this file, which accesses variables of the main file, 
// you need direct access to the namespace of the main file. To get this access, execute:  
///////////////////////////
access Namespace(::myNamespace) // *)

Show(temp);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;*) (obviously) this doesn't work&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2023 18:33:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Debugging-Jmp-applications/m-p/700343#M88507</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-11-20T18:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging Jmp applications</title>
      <link>https://community.jmp.com/t5/Discussions/Debugging-Jmp-applications/m-p/700657#M88527</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/41931"&gt;@Jonas_Rinne&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2023 09:18:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Debugging-Jmp-applications/m-p/700657#M88527</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-11-20T09:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging Jmp applications</title>
      <link>https://community.jmp.com/t5/Discussions/Debugging-Jmp-applications/m-p/701121#M88566</link>
      <description>&lt;P&gt;This screen capture shows the "issue" - when included in the main script, script_B knows the variables of the &lt;FONT face="courier new,courier"&gt;Here&lt;/FONT&gt; Namespace of the main script (log of the left window).&lt;BR /&gt;But executed separately, script_B has it's own &lt;FONT face="courier new,courier"&gt;Here&lt;/FONT&gt; namespace.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is like designed:&lt;BR /&gt;&lt;LI-MESSAGE title="Essential Scripting for Efficiency and Reproducibility: Do Less to Do More (2019-US-TUT-290)" uid="225697" url="https://community.jmp.com/t5/Discovery-Summit-Tucson-2019/Essential-Scripting-for-Efficiency-and-Reproducibility-Do-Less/m-p/225697#U225697" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-tkb-thread lia-fa-icon lia-fa-tkb lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;... but it makes it impossible to run single lines directly from script_B for debugging.&lt;BR /&gt;-&amp;gt; How can I link the namespaces to allow me to debug script_B .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6341498291112w944h540r260" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6341498291112" data-account="6058004218001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6058004218001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6341498291112w944h540r260');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://community.jmp.com/t5/video/gallerypage/video-id/6341498291112"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2023 20:22:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Debugging-Jmp-applications/m-p/701121#M88566</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-11-20T20:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging Jmp applications</title>
      <link>https://community.jmp.com/t5/Discussions/Debugging-Jmp-applications/m-p/825432#M100564</link>
      <description>&lt;P&gt;Any JSL expert who wants to share his/her tricks?&lt;/P&gt;</description>
      <pubDate>Sun, 29 Dec 2024 16:11:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Debugging-Jmp-applications/m-p/825432#M100564</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-12-29T16:11:05Z</dc:date>
    </item>
  </channel>
</rss>

