{"id":1203,"date":"2014-04-18T07:00:00","date_gmt":"2014-04-18T07:00:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/oldnewthing\/2014\/04\/18\/how-do-i-set-a-breakpoint-on-a-function-whose-name-contains-spaces-or-other-special-characters\/"},"modified":"2014-04-18T07:00:00","modified_gmt":"2014-04-18T07:00:00","slug":"how-do-i-set-a-breakpoint-on-a-function-whose-name-contains-spaces-or-other-special-characters","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/oldnewthing\/20140418-00\/?p=1203","title":{"rendered":"How do I set a breakpoint on a function whose name contains spaces or other special characters?"},"content":{"rendered":"<p>\nIf you use one of the command line debuggers based on the\n<a HREF=\"http:\/\/msdn.microsoft.com\/library\/ff540525\">\nDebugger Engine<\/a>,\nyou can set a breakpoint on a function whose name contains spaces\nor other special characters by quoting the symbol name.\nThe trick here is that you do not quote the entire string;\nyou quote only the symbol name.\n<\/p>\n<pre>\n0:001&gt; bu @!\"CSimpleArray&lt;wchar_t *&gt;::CSimpleArray&lt;wchar_t *&gt;\"\n<\/pre>\n<p>\nNote that the quotation marks do not go around the <code>@!<\/code>\npart.\nThey go only around the symbol.\n(Otherwise, the debugger thinks you are setting a breakpoint\naction.)\n<\/p>\n<p>\nAnother trick for setting breakpoints is using tab autocompletion\nfor symbols. If you type\n<code>bp contoso!*Widget*<\/code> and then hit <kbd>Tab<\/kbd> repeatedly,\nyou will cycle through all the matches.\n(It takes a few seconds to build the list of matches, so be patient\nthe first time you hit <kbd>Tab<\/kbd>.)\n<\/p>\n<p>\nPersonally, I use the <code>x<\/code> command to print out all the\nmatches, and then cherry-pick the one I want.\n<\/p>\n<pre>\n0:001&gt; x contoso!*Widget*\n00af114c contoso!CreateWidget\n009fe863 contoso!DestroyWidget\n00a2e161 contoso!MakeWidgetReadOnly\n00a93168 ...\n0:001&gt; bp 00a2e161     <u>set breakpoint on MakeWidgetReadOnly<\/u>\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>If you use one of the command line debuggers based on the Debugger Engine, you can set a breakpoint on a function whose name contains spaces or other special characters by quoting the symbol name. The trick here is that you do not quote the entire string; you quote only the symbol name. 0:001&gt; bu [&hellip;]<\/p>\n","protected":false},"author":1069,"featured_media":111744,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[26],"class_list":["post-1203","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oldnewthing","tag-other"],"acf":[],"blog_post_summary":"<p>If you use one of the command line debuggers based on the Debugger Engine, you can set a breakpoint on a function whose name contains spaces or other special characters by quoting the symbol name. The trick here is that you do not quote the entire string; you quote only the symbol name. 0:001&gt; bu [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/1203","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/users\/1069"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/comments?post=1203"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/1203\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media\/111744"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media?parent=1203"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/categories?post=1203"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/tags?post=1203"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}