{"id":2668,"date":"2015-12-10T14:02:06","date_gmt":"2015-12-10T14:02:06","guid":{"rendered":"https:\/\/www.mjtnet.com\/blog\/?p=2668"},"modified":"2015-12-10T14:02:06","modified_gmt":"2015-12-10T14:02:06","slug":"variable-breakpoints","status":"publish","type":"post","link":"https:\/\/www.mjtnet.com\/blog\/2015\/12\/10\/variable-breakpoints\/","title":{"rendered":"Variable Breakpoints"},"content":{"rendered":"<p>You may already be familiar with the Macro Scheduler debugger and know how to set code breakpoints. But did you know you can set variable breakpoints too?  With a variable breakpoint you can cause execution to pause when a specified variable becomes equal to a given value.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignleft size-medium wp-image-2669\" title=\"varbreak\" src=\"https:\/\/www.mjtnet.com\/blog\/wp-content\/uploads\/2015\/12\/varbreak-300x256.png\" alt=\"\" width=\"300\" height=\"256\" hspace=\"10\" srcset=\"https:\/\/www.mjtnet.com\/blog\/wp-content\/uploads\/2015\/12\/varbreak-300x256.png 300w, https:\/\/www.mjtnet.com\/blog\/wp-content\/uploads\/2015\/12\/varbreak.png 387w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>You will find the &#8220;Variable Breakpoints&#8221; option under the &#8220;Debug&#8221; menu in the code editor.<\/p>\n<p>You can set one or more variables and values.  Then at any point during execution when one of those conditions occurs the macro will pause and allow you to debug.  <\/p>\n<p>This can be very useful when you are not sure where an issue is occurring but you may know that a specific set of data causes a problem that you want to debug.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You may already be familiar with the Macro Scheduler debugger and know how to set code breakpoints. But did you know you can set variable breakpoints too? With a variable breakpoint you can cause execution to pause when a specified variable becomes equal to a given value. You will find the &#8220;Variable Breakpoints&#8221; option under [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[6],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/posts\/2668"}],"collection":[{"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/comments?post=2668"}],"version-history":[{"count":6,"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/posts\/2668\/revisions"}],"predecessor-version":[{"id":2675,"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/posts\/2668\/revisions\/2675"}],"wp:attachment":[{"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/media?parent=2668"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/categories?post=2668"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/tags?post=2668"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}