{"id":9457,"date":"2015-07-13T08:00:46","date_gmt":"2015-07-13T15:00:46","guid":{"rendered":"https:\/\/www.sapien.com\/blog\/?p=9457"},"modified":"2015-07-09T10:13:49","modified_gmt":"2015-07-09T17:13:49","slug":"powershell-studio-2015-enhancements-for-debugging","status":"publish","type":"post","link":"https:\/\/dev.sapien.com\/blog\/2015\/07\/13\/powershell-studio-2015-enhancements-for-debugging\/","title":{"rendered":"PowerShell Studio 2015: Enhancements for Debugging"},"content":{"rendered":"<p>In the last service release v4.2.86 we introduced some new enhancements to help improve your debugging experience.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>New Variables Panel Context Menu<\/strong><\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2015\/06\/image8.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display: inline; border-width: 0px;\" title=\"image\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2015\/06\/image_thumb8.png\" alt=\"image\" width=\"644\" height=\"212\" border=\"0\" \/><\/a><\/p>\n<p>We added a new context menu to the Variables Panel that allows you to:<\/p>\n<ul>\n<li><em><strong>Add To Watch<\/strong><\/em> \u2013 Adds the selected variable to the Watch Panel.<\/li>\n<li><strong><em>Query in Debug Console<\/em><\/strong> \u2013 Runs the variable in the Debug Console, so that you can inspect the variable. If you select a property, then the variable\u2019s property will be queried in the Debug Console.<\/li>\n<li><strong><em>Copy<\/em><\/strong> \u2013 Copies the cell contents to the clipboard.<\/li>\n<\/ul>\n<p><strong>New Watch Panel Context Menu<\/strong><\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2015\/06\/image9.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display: inline; border-width: 0px;\" title=\"image\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2015\/06\/image_thumb9.png\" alt=\"image\" width=\"644\" height=\"231\" border=\"0\" \/><\/a><\/p>\n<p>We also added a context menu to the Watch Panel that allows you to:<\/p>\n<ul>\n<li><em><strong>Copy<\/strong><\/em> \u2013 Copies the cell contents to the clipboard.<\/li>\n<li><em><strong>Select All<\/strong><\/em>&#8211; Selects all the watch variables.<\/li>\n<li><strong><em>Query in Debug Console<\/em><\/strong> \u2013 Runs the watch expression in the Debug Console.<\/li>\n<li><em><strong>Remove Watch Item<\/strong><\/em> \u2013 Removes the select expression from the Watch Panel.<\/li>\n<li><strong><em>Remove All<\/em><\/strong> \u2013 Removes all the expressions from the Watch Panel.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><strong>Adding Watch Expression via Editor<\/strong><\/p>\n<p>You can now use the editor\u2019s context menu to add variables to the Watch Panel.<\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2015\/06\/clip_image008.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"display: inline; border-width: 0px;\" title=\"clip_image008\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2015\/06\/clip_image008_thumb.jpg\" alt=\"clip_image008\" width=\"244\" height=\"147\" border=\"0\" \/><\/a><\/p>\n<p>If you use the \u201cAdd To Watch\u201d command on a property or method of a variable, it will include the whole statement.<\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2015\/06\/clip_image010.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"display: inline; border-width: 0px;\" title=\"clip_image010\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2015\/06\/clip_image010_thumb.jpg\" alt=\"clip_image010\" width=\"244\" height=\"50\" border=\"0\" \/><\/a><\/p>\n<p>You can also use the new \u201cRun Selection in Debug Console\u201d command via the editor\u2019s context menu to run the selection in the Debug Console.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Debug Console<\/strong><\/p>\n<p>Submitted commands are now displayed in the output window of the Debug Console:<\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2015\/06\/SNAGHTML51f45e.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display: inline; border-width: 0px;\" title=\"SNAGHTML51f45e\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2015\/06\/SNAGHTML51f45e_thumb.png\" alt=\"SNAGHTML51f45e\" width=\"644\" height=\"262\" border=\"0\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>We hope that these enhancements will help improve your debugging experience.<\/p>\n<p>If you have any suggestions or feature requests, please share them with us on our <a href=\"https:\/\/www.sapien.com\/forums\/viewforum.php?f=9\">Wish List and Feature Requests<\/a> forum.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the last service release v4.2.86 we introduced some new enhancements to help improve your debugging experience. &nbsp; New Variables Panel Context Menu We added a new context menu to the Variables Panel that allows you to: Add To Watch \u2013 Adds the selected variable to the Watch Panel. Query in Debug Console \u2013 Runs [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[703,632,25],"tags":[222,28,951,237,623],"class_list":["post-9457","post","type-post","status-publish","format-standard","hentry","category-powershell-studio","category-whats-new-software-news","category-windows-powershell","tag-debugging","tag-powershell","tag-powershell-studio-2015","tag-variables","tag-watch"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/9457","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/comments?post=9457"}],"version-history":[{"count":4,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/9457\/revisions"}],"predecessor-version":[{"id":9503,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/9457\/revisions\/9503"}],"wp:attachment":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/media?parent=9457"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/categories?post=9457"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/tags?post=9457"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}