{"id":198,"date":"2012-11-29T10:54:05","date_gmt":"2012-11-29T10:54:05","guid":{"rendered":"http:\/\/www.electronic-products-development.com\/?p=198"},"modified":"2022-02-18T15:37:49","modified_gmt":"2022-02-18T15:37:49","slug":"debug-release-modes","status":"publish","type":"post","link":"https:\/\/ibex.tech\/embedded\/microchip\/mplab-x\/debug-release-modes","title":{"rendered":"Debug \/ Release Modes"},"content":{"rendered":"<p>\nMPLAB allows you to use this macro:\n<\/p>\n<pre>\r\n<code>__DEBUG<\/code><\/pre>\n<p>\nto detect if a debug or release mode is selected. It is not built in into MPLAB X and will be automatically set when compiling for a debugger.\n<\/p>\n<p>\nTo forcibly enable it you can also just add this to a global header file when debugging:\n<\/p>\n<pre>\r\n<code>\r\n#ifndef __DEBUG\r\n\t#define __DEBUG\r\n#endif\r\n<\/code><\/pre>\n<p>\n&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>MPLAB allows you to use this macro: __DEBUG to detect if a debug or release mode is selected. It is not built in into MPLAB X and will be automatically set when compiling for a debugger. To forcibly enable it you can also just add this to a global header file when debugging: #ifndef __DEBUG [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23],"tags":[],"class_list":["post-198","post","type-post","status-publish","format-standard","hentry","category-mplab-x"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/posts\/198","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/comments?post=198"}],"version-history":[{"count":6,"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/posts\/198\/revisions"}],"predecessor-version":[{"id":585,"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/posts\/198\/revisions\/585"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/media?parent=198"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/categories?post=198"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/embedded\/wp-json\/wp\/v2\/tags?post=198"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}