{"id":16045,"date":"2018-01-08T09:00:51","date_gmt":"2018-01-08T17:00:51","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/visualstudio\/?p=16045"},"modified":"2018-01-08T09:00:51","modified_gmt":"2018-01-08T17:00:51","slug":"visual-studio-code-java-debugger-adding-step-filter-and-expression-evaluation","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/java\/visual-studio-code-java-debugger-adding-step-filter-and-expression-evaluation\/","title":{"rendered":"Visual Studio Code Java Debugger Adding Step Filter and Expression Evaluation"},"content":{"rendered":"<p>Happy new year! We\u2019d like to thank you all for using Visual Studio Code for your Java development as well as for sharing your feedback. Within just three months, we\u2019ve published 5 releases for our <a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=vscjava.vscode-java-debug\">Debugger for Java<\/a> extension for Visual Studio Code and received 400K+ downloads. With our new 0.5.0 release, we\u2019re adding two new exciting features: Expression Evaluation and Support Step Filters.<\/p>\n<h2>Expression Evaluation<\/h2>\n<p>The debugger now enables you to evaluate expressions in variable watch window as well as debug console at runtime. So now you can see the value of both the simple variables, single-line expressions, as well as short code fragments within the running context. You can then monitor and validate the change of the value when your code is being executed. See below<\/p>\n<p><a target=\"_blank\" href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/06\/VS-Code-Java-Debugger-Adding-Expression-Evaluation.gif\" rel=\"noopener noreferrer\"><img decoding=\"async\" title=\"VS Code Java Debugger Adding Expression Evaluation\" alt=\"VS Code Java Debugger Adding Expression Evaluation\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2018\/01\/VS-Code-Java-Debugger-Adding-Expression-Evaluation.gif\" \/><\/a><\/p>\n<h2>Support step filter<\/h2>\n<p>Step filters are commonly used to filter out types that you do not wish to see or step through while debugging. With this feature, you can configure the packages to filter within your <i>launch.json<\/i> so they could be skipped when you step through. See below<\/p>\n<p><a target=\"_blank\" href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/06\/VS-Code-Java-Debugger-Adding-Step-Filters.gif\" rel=\"noopener noreferrer\"><img decoding=\"async\" title=\"VS Code Java Debugger Adding Step Filters\" alt=\"VS Code Java Debugger Adding Step Filters\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2018\/01\/VS-Code-Java-Debugger-Adding-Step-Filters.gif\" \/><\/a><\/p>\n<h2>Other updates<\/h2>\n<p>This release also includes a few other enhancements:<\/p>\n<ol>\n<li>Publish the binaries to the maven central repository<\/li>\n<li>Adopt new Visual Studio Code 1.19.0 debug activation events<\/li>\n<li>Improving searching performance by looking up the stack frame&#8217;s associated source file from source containers directly instead of leveraging the original jdt search engine<\/li>\n<li>Bug fixes<\/li>\n<\/ol>\n<p>You can find more details in our <a href=\"https:\/\/github.com\/Microsoft\/vscode-java-debug\/blob\/master\/CHANGELOG.md\">changelog<\/a>.<\/p>\n<h2>Try it out<\/h2>\n<p>If you\u2019re trying to find a performant editor for your Java project, please give Visual Studio Code a try<\/p>\n<ul>\n<li>Install the <a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=vscjava.vscode-java-debug\">Java Extension Pack<\/a> which includes the <a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=redhat.java\">Language Support for Java(TM) by Red Hat<\/a>, <a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=vscjava.vscode-java-debug\">Debugger for Java<\/a> and <a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=vscjava.vscode-java-test\">Test Runner\/Debugger for Java<\/a>.<\/li>\n<li>Learn more about <a href=\"https:\/\/code.visualstudio.com\/docs\/languages\/java\">Java on Visual Studio Code<\/a>.<\/li>\n<li>Explore our step by step <a href=\"https:\/\/code.visualstudio.com\/docs\/java\/java-tutorial\">Java Tutorials on Visual Studio Code<\/a>.<\/li>\n<li>You can submit a bug or feature request to <a href=\"https:\/\/github.com\/Microsoft\/vscode-java-debug\/issues\">Java Debugger Extension<\/a> and participate in our community-driven <a href=\"https:\/\/microsoft-my.sharepoint.com\/personal\/hxiao_microsoft_com\/Documents\/Java%20on%20Azure\/VS%20Blog\/(https:\/gitter.im\/Microsoft\/vscode-java-debug)\">Gitter<\/a> channel for discussion.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Happy new year! We\u2019d like to thank you all for using Visual Studio Code for your Java development as well as for sharing your feedback. Within just three months, we\u2019ve published 5 releases for our Debugger for Java extension for Visual Studio Code and received 400K+ downloads. With our new 0.5.0 release, we\u2019re adding two [&hellip;]<\/p>\n","protected":false},"author":668,"featured_media":227205,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[14],"tags":[13,12],"class_list":["post-16045","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cloud","tag-azure","tag-visual-studio-code"],"acf":[],"blog_post_summary":"<p>Happy new year! We\u2019d like to thank you all for using Visual Studio Code for your Java development as well as for sharing your feedback. Within just three months, we\u2019ve published 5 releases for our Debugger for Java extension for Visual Studio Code and received 400K+ downloads. With our new 0.5.0 release, we\u2019re adding two [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/java\/wp-json\/wp\/v2\/posts\/16045","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/java\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/java\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/java\/wp-json\/wp\/v2\/users\/668"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/java\/wp-json\/wp\/v2\/comments?post=16045"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/java\/wp-json\/wp\/v2\/posts\/16045\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/java\/wp-json\/wp\/v2\/media\/227205"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/java\/wp-json\/wp\/v2\/media?parent=16045"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/java\/wp-json\/wp\/v2\/categories?post=16045"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/java\/wp-json\/wp\/v2\/tags?post=16045"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}