<?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: Breakpoint when debugging an application (GUI) in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Breakpoint-when-debugging-an-application-GUI/m-p/246987#M48490</link>
    <description>&lt;P&gt;The debugger has to be open before you can set any breakpoints.&amp;nbsp; I used one of the scripting index ButtonBox examples to demonstrate:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
New Window( "Example",
	Button Box( "press me", &amp;lt;&amp;lt;setFunction(
		Function( {this},
			this &amp;lt;&amp;lt; setButtonName( "thanks" )
		)	
	) )
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Click "Debug Script" from the toolbar, Edit menu, or context-click menu.&amp;nbsp; In the debugger, context-click on the line within the Button Box function to set a breakpoint, and then click "Run" from the toolbar.&amp;nbsp; The script will then run without interruption until the button is pressed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="ButtonDebug.png" style="width: 545px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/21700iFBC411C5969302E9/image-size/large?v=v2&amp;amp;px=999" role="button" title="ButtonDebug.png" alt="ButtonDebug.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Feb 2020 13:38:20 GMT</pubDate>
    <dc:creator>danschikore</dc:creator>
    <dc:date>2020-02-11T13:38:20Z</dc:date>
    <item>
      <title>Breakpoint when debugging an application (GUI)</title>
      <link>https://community.jmp.com/t5/Discussions/Breakpoint-when-debugging-an-application-GUI/m-p/246890#M48476</link>
      <description>&lt;P&gt;How can I add a breakpoint that stops the execution within an application that has GUI?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, only when pressing a button the debugger opens and halts the program in the desired line.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2020 07:56:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Breakpoint-when-debugging-an-application-GUI/m-p/246890#M48476</guid>
      <dc:creator>FN</dc:creator>
      <dc:date>2020-02-11T07:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: Breakpoint when debugging an application (GUI)</title>
      <link>https://community.jmp.com/t5/Discussions/Breakpoint-when-debugging-an-application-GUI/m-p/246987#M48490</link>
      <description>&lt;P&gt;The debugger has to be open before you can set any breakpoints.&amp;nbsp; I used one of the scripting index ButtonBox examples to demonstrate:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
New Window( "Example",
	Button Box( "press me", &amp;lt;&amp;lt;setFunction(
		Function( {this},
			this &amp;lt;&amp;lt; setButtonName( "thanks" )
		)	
	) )
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Click "Debug Script" from the toolbar, Edit menu, or context-click menu.&amp;nbsp; In the debugger, context-click on the line within the Button Box function to set a breakpoint, and then click "Run" from the toolbar.&amp;nbsp; The script will then run without interruption until the button is pressed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="ButtonDebug.png" style="width: 545px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/21700iFBC411C5969302E9/image-size/large?v=v2&amp;amp;px=999" role="button" title="ButtonDebug.png" alt="ButtonDebug.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2020 13:38:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Breakpoint-when-debugging-an-application-GUI/m-p/246987#M48490</guid>
      <dc:creator>danschikore</dc:creator>
      <dc:date>2020-02-11T13:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: Breakpoint when debugging an application (GUI)</title>
      <link>https://community.jmp.com/t5/Discussions/Breakpoint-when-debugging-an-application-GUI/m-p/248444#M48756</link>
      <description>&lt;P&gt;Thanks, but when trying to run any application via a script, I get this error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Name Unresolved: OnModuleLoad in access or evaluation of 'OnModuleLoad' , OnModuleLoad( {} ) /*###*/&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FN_0-1582189306616.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/21831iF92563A0E6E6A46F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FN_0-1582189306616.png" alt="FN_0-1582189306616.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you run it from the GUI editor tab (Module1), this error does not appear. Hence, I was not sure how to debug these.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2020 09:04:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Breakpoint-when-debugging-an-application-GUI/m-p/248444#M48756</guid>
      <dc:creator>FN</dc:creator>
      <dc:date>2020-02-20T09:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Breakpoint when debugging an application (GUI)</title>
      <link>https://community.jmp.com/t5/Discussions/Breakpoint-when-debugging-an-application-GUI/m-p/248470#M48761</link>
      <description>&lt;P&gt;I see now - I was assuming the generic term "application", and not the Application Builder.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The scripts in Application Builder cannot be run stand-alone - when you right click in the script area and choose "Run" or "Debug" it tries to execute the script by itself, without starting a JMPApp instance first.&amp;nbsp; I would suggest using the red-triangle menu to start the debugging session, which includes the necessary application startup.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2020 13:28:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Breakpoint-when-debugging-an-application-GUI/m-p/248470#M48761</guid>
      <dc:creator>danschikore</dc:creator>
      <dc:date>2020-02-20T13:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: Breakpoint when debugging an application (GUI)</title>
      <link>https://community.jmp.com/t5/Discussions/Breakpoint-when-debugging-an-application-GUI/m-p/248475#M48762</link>
      <description>&lt;P&gt;I was not aware of that option, thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, I get this message when I click "Debug Application":&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;A time-out encountered while attempting to connect to the JSL Debugger GUI.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FN_0-1582208308258.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/21834i1EA6375580AB647F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FN_0-1582208308258.png" alt="FN_0-1582208308258.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2020 14:23:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Breakpoint-when-debugging-an-application-GUI/m-p/248475#M48762</guid>
      <dc:creator>FN</dc:creator>
      <dc:date>2020-02-20T14:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: Breakpoint when debugging an application (GUI)</title>
      <link>https://community.jmp.com/t5/Discussions/Breakpoint-when-debugging-an-application-GUI/m-p/248481#M48763</link>
      <description>&lt;P&gt;&lt;A href="https://www.jmp.com/support/notes/55/411.html" target="_blank"&gt;SN-55411&lt;/A&gt; may help you get the debugger working.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2020 14:28:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Breakpoint-when-debugging-an-application-GUI/m-p/248481#M48763</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2020-02-20T14:28:47Z</dc:date>
    </item>
  </channel>
</rss>

