{"id":61,"date":"2012-06-11T10:36:00","date_gmt":"2012-06-11T05:06:00","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=61"},"modified":"2012-06-11T10:36:00","modified_gmt":"2012-06-11T05:06:00","slug":"how-to-debug-plugins-using-profiler","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2012\/06\/how-to-debug-plugins-using-profiler\/","title":{"rendered":"How to Debug Plugins using Profiler"},"content":{"rendered":"<div dir=\"ltr\">\n<div><span>One can<\/span><span> debug <\/span><span>CRM plug ins <\/span><span>without connecting to CRM server or without remote debugging.<\/span><\/div>\n<div><span>Here are the steps as in how you can use Profiler for debugging plug ins: <\/span><\/div>\n<\/div>\n<p><span><span><span>\u00a0\u00a0 1&gt;<\/span><span>\u00a0\u00a0\u00a0\u00a0 <\/span><\/span><\/span><span><span>Connect to CRM using plugin registration tool of March SDK 2012.<\/span><\/span><\/p>\n<div><\/div>\n<div><span><span><span>\u00a0\u00a0\u00a02&gt;<\/span><span>\u00a0\u00a0\u00a0<span><span><span>\u00a0\u00a0 <\/span><\/span><\/span><span><span><span>C<\/span><span>lick on Install Profiler <\/span><\/span><\/span><\/span><\/span><\/span><\/div>\n<p>&nbsp;<\/p>\n<div><a href=\"http:\/\/4.bp.blogspot.com\/-LoNmwqE5Ylk\/T9XDcnF--LI\/AAAAAAAABR4\/S_B5CGmz7hs\/s1600\/1.png\"><img decoding=\"async\" alt=\"\" src=\"http:\/\/4.bp.blogspot.com\/-LoNmwqE5Ylk\/T9XDcnF--LI\/AAAAAAAABR4\/S_B5CGmz7hs\/s320\/1.png\" width=\"320\" height=\"122\" border=\"0\" \/><\/a><\/div>\n<div><span><span><span>\u00a0\u00a0 3&gt;<\/span><span>\u00a0\u00a0\u00a0\u00a0 <\/span><\/span><\/span><span><span>You will find a new node attached to registered plugins \u201cPlugin Profiler\u201d. <\/span><\/span><\/div>\n<div><\/div>\n<div><a href=\"http:\/\/1.bp.blogspot.com\/-3B_YIuf--wo\/T9XDyfLn5mI\/AAAAAAAABSA\/PdlzFBPQo50\/s1600\/2.png\"><img decoding=\"async\" alt=\"\" src=\"http:\/\/1.bp.blogspot.com\/-3B_YIuf--wo\/T9XDyfLn5mI\/AAAAAAAABSA\/PdlzFBPQo50\/s320\/2.png\" width=\"320\" height=\"174\" border=\"0\" \/><\/a><\/div>\n<div><\/div>\n<div><\/div>\n<div>\n<p><span>\u00a0\u00a0 <\/span><\/p>\n<p><span><span><span>4&gt;<\/span><span>\u00a0\u00a0\u00a0\u00a0 <\/span><\/span><\/span><span><span>Select a plug-in step and click Profile to enable profiling.<\/span><\/span><\/div>\n<div><\/div>\n<div><a href=\"http:\/\/2.bp.blogspot.com\/-DyTZ4SgLLks\/T9XFBjtecZI\/AAAAAAAABSI\/DuZ87mbacj4\/s1600\/4.png\"><img decoding=\"async\" alt=\"\" src=\"http:\/\/2.bp.blogspot.com\/-DyTZ4SgLLks\/T9XFBjtecZI\/AAAAAAAABSI\/DuZ87mbacj4\/s320\/4.png\" width=\"320\" height=\"110\" border=\"0\" \/><\/a><\/div>\n<div><\/div>\n<div><\/div>\n<div><span><span><span>5&gt;<\/span><span>\u00a0\u00a0\u00a0\u00a0 <\/span><\/span><\/span><span><span>Then start your plugin from MSCRM i.e if your plugin is on update perform\u00a0 update\u00a0operation and download the error file. <\/span><\/span><\/div>\n<p>&nbsp;<\/p>\n<div><\/div>\n<div><\/div>\n<div><\/div>\n<div><\/div>\n<div><span><span><span>6&gt;<\/span><span>\u00a0\u00a0\u00a0\u00a0 <\/span><\/span><\/span><span><span>Then in Visual Studio attach to process \u201cplugin registeration.exe\u201d. Add the breakpoint\u00a0 from where you would like to debug.<\/span><\/span><\/div>\n<div><\/div>\n<div><a href=\"http:\/\/4.bp.blogspot.com\/-8IjRQVIJ3vY\/T9XFYT8troI\/AAAAAAAABSQ\/_BgaqcMI2mo\/s1600\/6.png\"><img decoding=\"async\" alt=\"\" src=\"http:\/\/4.bp.blogspot.com\/-8IjRQVIJ3vY\/T9XFYT8troI\/AAAAAAAABSQ\/_BgaqcMI2mo\/s320\/6.png\" width=\"320\" height=\"216\" border=\"0\" \/><\/a><\/div>\n<div><span><span><span>7&gt;<\/span><span>\u00a0\u00a0\u00a0\u00a0 <\/span><\/span><\/span><span><span>Then click on Debug in plugin registration tool.<\/span><\/span><\/div>\n<div><\/div>\n<div><a href=\"http:\/\/4.bp.blogspot.com\/-gwdLuRjOchY\/T9XHjQ1yCPI\/AAAAAAAABSY\/v-wBDz7l0DU\/s1600\/7.png\"><img decoding=\"async\" alt=\"\" src=\"http:\/\/4.bp.blogspot.com\/-gwdLuRjOchY\/T9XHjQ1yCPI\/AAAAAAAABSY\/v-wBDz7l0DU\/s320\/7.png\" width=\"320\" height=\"179\" border=\"0\" \/><\/a><\/div>\n<div><\/div>\n<div><span><span><span>8&gt;<\/span><span>\u00a0\u00a0\u00a0\u00a0 <\/span><\/span><\/span><span><span>In Profile location provide the path of the error log of the plugin. <\/span><\/span><\/div>\n<div><\/div>\n<div><span><span><span>9&gt;<\/span><span>\u00a0\u00a0\u00a0\u00a0 <\/span><\/span><\/span><span><span>In Assembly location provide the dll of the plugin from which you got error. <\/span><\/span><\/div>\n<div><\/div>\n<div><span><span><span>10&gt;<\/span><span>\u00a0\u00a0\u00a0\u00a0 <\/span><\/span><\/span><span><span>Then select the Plugin class from Plug-in. This drop down will contains all classes present in the dll. <\/span><\/span><\/div>\n<div><\/div>\n<div><span><span><span>11&gt;<\/span><span>\u00a0\u00a0\u00a0\u00a0 <\/span><\/span><\/span><span><span>To start debugging just click on Start Plug-in Execution.<\/span><\/span><\/div>\n<div><\/div>\n<div><a href=\"http:\/\/3.bp.blogspot.com\/-Rs6LlxD77y8\/T9XIdfLlDtI\/AAAAAAAABSg\/1Aa8asqHwJg\/s1600\/8.png\"><img decoding=\"async\" alt=\"\" src=\"http:\/\/3.bp.blogspot.com\/-Rs6LlxD77y8\/T9XIdfLlDtI\/AAAAAAAABSg\/1Aa8asqHwJg\/s320\/8.png\" width=\"304\" height=\"320\" border=\"0\" \/><\/a><\/div>\n<div><\/div>\n<div><\/div>\n<div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>One can debug CRM plug ins without connecting to CRM server or without remote debugging. Here are the steps as in how you can use Profiler for debugging plug ins: \u00a0\u00a0 1&gt;\u00a0\u00a0\u00a0\u00a0 Connect to CRM using plugin registration tool of March SDK 2012. \u00a0\u00a0\u00a02&gt;\u00a0\u00a0\u00a0\u00a0\u00a0 Click on Install Profiler &nbsp; \u00a0\u00a0 3&gt;\u00a0\u00a0\u00a0\u00a0 You will find a\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2012\/06\/how-to-debug-plugins-using-profiler\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[20,42],"tags":[488,1330,1374],"class_list":["post-61","post","type-post","status-publish","format-standard","hentry","category-dynamics-crm-2011","category-plugin","tag-debugging","tag-plugins","tag-profiler"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/61","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/comments?post=61"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/61\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=61"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=61"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=61"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}