{"id":124735,"date":"2018-05-29T08:48:47","date_gmt":"2018-05-29T06:48:47","guid":{"rendered":"https:\/\/www.justinmind.com\/blog\/how-to-debug-your-plugins-code\/"},"modified":"2025-02-03T16:44:29","modified_gmt":"2025-02-03T15:44:29","slug":"how-to-debug-your-plugins-code","status":"publish","type":"post","link":"https:\/\/www.justinmind.com\/fr\/aide\/comment-deboguer-le-code-de-vos-plugins","title":{"rendered":"Comment d\u00e9boguer le code de votre plugin"},"content":{"rendered":"<p>Vous pouvez d\u00e9boguer le code de votre plugin afin de corriger d&rsquo;\u00e9ventuels bugs et de voir son ex\u00e9cution ligne par ligne. Tout d&rsquo;abord, nous devons configurer l&rsquo;ex\u00e9cution de l&rsquo;application Justinmind pour qu&rsquo;elle puisse \u00eatre d\u00e9bogu\u00e9e.   <\/p>\n<h2><a id=\"setting-up-debug\"><\/a>Configurez votre application Justinmind<\/h2>\n<p>Trouvez le fichier appel\u00e9 &lsquo;Justinmind.cfg&rsquo; dans votre dossier d&rsquo;installation de Justinmind (notez que nous parlons de l&rsquo;application Justinmind, et non du SDK dans ce cas). Sur Mac, faites un clic droit\/option sur l&rsquo;application Justinmind et s\u00e9lectionnez \u00ab\u00a0Show package contents\u00a0\u00bb. Le fichier se trouve dans l&rsquo;un des dossiers. Ajoutez la ligne suivante sous   <\/p>\n<p> [JVMOptions]<\/p>\n<p>-agentlib:jdwp=transport=dt_socket,address=9000,server=y,suspend=n<\/p>\n<h2><a id=\"debugging-plugin\"><\/a>Configurer votre SDK Justinmind<\/h2>\n<p>Ouvrez votre SDK Justinmind et modifiez la configuration Debug de votre projet comme suit :<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-14303\" src=\"https:\/\/www.justinmind.com\/wp-content\/uploads\/2021\/02\/debug-justinmindskd-1.png\" alt=\"debbuging-config-justinmindsdk\"><br \/>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-14303\" src=\"https:\/\/www.justinmind.com\/wp-content\/uploads\/2021\/02\/debug-justinmindsdk-2.png\" alt=\"debbuging-justinmindsdk\"><\/p>\n<h2><a id=\"launching-plugin\"><\/a>D\u00e9bogage de votre plugin<\/h2>\n<ol>\n<li>Ouvrez l&rsquo;application Justinmind.<\/li>\n<li>D\u00e9finissez les points d&rsquo;arr\u00eat souhait\u00e9s dans le code de votre plugin dans le SDK Justinmind.<\/li>\n<li>Ex\u00e9cutez votre projet de plugin en utilisant la configuration de d\u00e9bogage dans le SDK de Justinmind.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Vous pouvez d\u00e9boguer le code de votre plugin afin de corriger d&rsquo;\u00e9ventuels bugs et de voir son ex\u00e9cution ligne par ligne. Tout d&rsquo;abord, nous devons configurer&#8230;<\/p>\n","protected":false},"author":18,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[8436,8456],"tags":[],"class_list":["post-124735","post","type-post","status-publish","format-standard","hentry","category-guide-de-lutilisateur","category-api-et-plugins"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.justinmind.com\/fr\/wp-json\/wp\/v2\/posts\/124735"}],"collection":[{"href":"https:\/\/www.justinmind.com\/fr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.justinmind.com\/fr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.justinmind.com\/fr\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/www.justinmind.com\/fr\/wp-json\/wp\/v2\/comments?post=124735"}],"version-history":[{"count":1,"href":"https:\/\/www.justinmind.com\/fr\/wp-json\/wp\/v2\/posts\/124735\/revisions"}],"predecessor-version":[{"id":126152,"href":"https:\/\/www.justinmind.com\/fr\/wp-json\/wp\/v2\/posts\/124735\/revisions\/126152"}],"wp:attachment":[{"href":"https:\/\/www.justinmind.com\/fr\/wp-json\/wp\/v2\/media?parent=124735"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.justinmind.com\/fr\/wp-json\/wp\/v2\/categories?post=124735"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.justinmind.com\/fr\/wp-json\/wp\/v2\/tags?post=124735"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}