{"id":1872,"date":"2010-12-06T23:17:51","date_gmt":"2010-12-07T07:17:51","guid":{"rendered":"https:\/\/mathpirate.net\/log\/?p=1872"},"modified":"2010-12-06T23:17:51","modified_gmt":"2010-12-07T07:17:51","slug":"spot-the-problem","status":"publish","type":"post","link":"https:\/\/mathpirate.net\/log\/2010\/12\/06\/spot-the-problem\/","title":{"rendered":"Spot the Problem"},"content":{"rendered":"<p>My application has crashed.\u00c2\u00a0 Can you spot the error?<\/p>\n<p><a href=\"https:\/\/mathpirate.net\/log\/wp-content\/uploads\/2010\/12\/SpotTheError.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-1871\" title=\"SpotTheError\" src=\"https:\/\/mathpirate.net\/log\/wp-content\/uploads\/2010\/12\/SpotTheError-300x200.png\" alt=\"\" width=\"300\" height=\"200\" srcset=\"https:\/\/mathpirate.net\/log\/wp-content\/uploads\/2010\/12\/SpotTheError-300x200.png 300w, https:\/\/mathpirate.net\/log\/wp-content\/uploads\/2010\/12\/SpotTheError-1024x685.png 1024w, https:\/\/mathpirate.net\/log\/wp-content\/uploads\/2010\/12\/SpotTheError.png 1344w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Of course you can&#8217;t, because instead of popping up with a very visible &#8220;You had an exception!&#8221; dialog, the error is playing hide and seek.<\/p>\n<p>It&#8217;s actually there, in two places (That I&#8217;ve found&#8230;).<\/p>\n<ol>\n<li>In the Variables pane, &#8220;e&#8221; is a RuntimeException.<\/li>\n<li>In the log pane, if you scroll up about a hundred lines, you&#8217;ll find the same RuntimeException, although all of the useful bits are truncated.<\/li>\n<\/ol>\n<p>The exception I&#8217;m getting is that I didn&#8217;t put an android:layout_width attribute on a checkbox element that I&#8217;ve added.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>My application has crashed.\u00c2\u00a0 Can you spot the error? Of course you can&#8217;t, because instead of popping up with a very visible &#8220;You had an exception!&#8221; dialog, the error is playing hide and seek. It&#8217;s actually there, in two places (That I&#8217;ve found&#8230;). In the Variables pane, &#8220;e&#8221; is a RuntimeException. In the log pane, [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[176],"tags":[177,109,178,14],"_links":{"self":[{"href":"https:\/\/mathpirate.net\/log\/wp-json\/wp\/v2\/posts\/1872"}],"collection":[{"href":"https:\/\/mathpirate.net\/log\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mathpirate.net\/log\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mathpirate.net\/log\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mathpirate.net\/log\/wp-json\/wp\/v2\/comments?post=1872"}],"version-history":[{"count":2,"href":"https:\/\/mathpirate.net\/log\/wp-json\/wp\/v2\/posts\/1872\/revisions"}],"predecessor-version":[{"id":1874,"href":"https:\/\/mathpirate.net\/log\/wp-json\/wp\/v2\/posts\/1872\/revisions\/1874"}],"wp:attachment":[{"href":"https:\/\/mathpirate.net\/log\/wp-json\/wp\/v2\/media?parent=1872"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mathpirate.net\/log\/wp-json\/wp\/v2\/categories?post=1872"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mathpirate.net\/log\/wp-json\/wp\/v2\/tags?post=1872"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}