{"id":5234,"date":"2014-03-30T19:58:44","date_gmt":"2014-03-30T19:58:44","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/is-there-a-way-to-disable-calls-to-runtime-checkrestricted-on-the-gae-java-development-server-under-eclipse-collection-of-common-programming-errors\/"},"modified":"2014-03-30T19:58:44","modified_gmt":"2014-03-30T19:58:44","slug":"is-there-a-way-to-disable-calls-to-runtime-checkrestricted-on-the-gae-java-development-server-under-eclipse-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/is-there-a-way-to-disable-calls-to-runtime-checkrestricted-on-the-gae-java-development-server-under-eclipse-collection-of-common-programming-errors\/","title":{"rendered":"Is there a way to disable calls to Runtime.checkRestricted on the GAE Java development server under Eclipse?-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/767a498f0f28017ff1ffd5adad87f455?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nStewbob<\/p>\n<p>I&#8217;m one of those guys who step through their code a lot during development. Beginning with version 1.6.4 of the GAE Java development server, the server has been instrumented with calls to a function named <code>Runtime.checkRestricted<\/code>. This causes two inconveniences when I step through my code:<\/p>\n<ol>\n<li>Whenever I step into a function, the debugger goes into the function <code>Runtime.checkRestricted<\/code> (for which there is no source code) at least once, often multiple times.<\/li>\n<li>Whenever I step over a function call which has a large call tree underneath, it takes a very long time for the debugger to come back. (That&#8217;s always a problem in the Eclipse Java debugger, but now it&#8217;s really bad.)<\/li>\n<\/ol>\n<p>For me, all this causes a serious drain on productivity. Is there any way to disable this instrumentation, or at least to prevent the debugger from stepping into it? I am using Eclipse with the GAE plugin.<\/p>\n<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/739dfa7b7b4580406c6e45fc8b3e3520?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nAbdull<\/p>\n<p>Add a step filter to filter out all step breakpoints you are not interested in. The Eclipse documention provides a guide how to set up step filter.<\/p>\n<p>In your specific case, you will want to add a package filter for com.google.appengine.tools.development.* , as this package and its subpackages contain GAE&#8217;s Runtime class and RuntimeHelper class. Finally, don&#8217;t forget to activate the option &#8220;Use Step Filters&#8221; (Shift + F5).<\/p>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Stewbob I&#8217;m one of those guys who step through their code a lot during development. Beginning with version 1.6.4 of the GAE Java development server, the server has been instrumented with calls to a function named Runtime.checkRestricted. This causes two inconveniences when I step through my code: Whenever I step into a function, the debugger [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5234","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5234","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=5234"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5234\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5234"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5234"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5234"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}