{"id":570859,"date":"2025-05-29T15:30:51","date_gmt":"2025-05-29T14:30:51","guid":{"rendered":"https:\/\/blog.jetbrains.com\/?post_type=clion&#038;p=570859"},"modified":"2025-07-04T15:35:55","modified_gmt":"2025-07-04T14:35:55","slug":"introducing-live-watches","status":"publish","type":"clion","link":"https:\/\/blog.jetbrains.com\/zh-hans\/clion\/2025\/05\/introducing-live-watches","title":{"rendered":"Introducing Live Watches in CLion\u2019s Debugger"},"content":{"rendered":"\n<p>The latest CLion 2025.2 EAP build, 252.18003.25, includes one of the most requested features for embedded development: live watches. It allows you to monitor global variables in real time without stopping the debugger or the program\u2019s execution. This feature is particularly useful for embedded developers working with time-sensitive protocols, such as Bluetooth, or with physical processes that cannot be interrupted.<\/p>\n\n\n\n<p>If you want to try it out, download the EAP build for free from the link below, via <a href=\"https:\/\/www.jetbrains.com\/toolbox-app\/\" target=\"_blank\" rel=\"noopener\">Toolbox App<\/a>, or as a snap package if you\u2019re using Ubuntu.<\/p>\n\n\n\n<p align=\"center\"><a class=\"jb-download-button\" href=\"https:\/\/www.jetbrains.com\/clion\/nextversion\/\" target=\"_blank\" rel=\"noopener\" data-test=\"blog-article-cta\"><i class=\"download-icon\"><\/i>DOWNLOAD CLION 2025.2 EAP<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to use live watches<\/h2>\n\n\n\n<p>This feature is enabled by default in the debugger. To use it, <a href=\"https:\/\/www.jetbrains.com\/help\/clion\/debug-servers.html\" target=\"_blank\" rel=\"noopener\"><em>Debug Servers<\/em><\/a> must be enabled in <em>Settings | Advanced Settings | Debugger<\/em>.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote has-background\" style=\"background-color:#f2f6f7\">\n<p><\/p>\n<cite>Live watches currently only work with the SEGGER J-Link and ST-LINK debug servers, or the generic one connected to SEGGER J-Link and ST-LINK debug probes. See the <a href=\"#current-limitations\" data-type=\"internal\" data-id=\"#current-limitations\">other current limitations<\/a> below.<\/cite><\/blockquote>\n\n\n\n<p><\/p>\n\n\n\n<p>Once the <em>Debug Servers<\/em> setting is enabled:<\/p>\n\n\n\n<ol>\n<li><a href=\"https:\/\/www.jetbrains.com\/help\/clion\/debug-servers.html#configure-debug-servers\" target=\"_blank\" rel=\"noopener\">Configure<\/a> your debug server in <em>Settings | Debugger | Debug Servers<\/em>.&nbsp;<\/li>\n\n\n\n<li>Select the required run\/debug configuration.<\/li>\n\n\n\n<li>Run a debug session.<\/li>\n\n\n\n<li>Select the <em>Live Watches<\/em> pane and add a variable to watch.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"1600\" height=\"572\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2025\/05\/image-34.png\" alt=\"\" class=\"wp-image-570977\"\/><\/figure>\n\n\n\n<ol start=\"5\">\n<li>The variable will appear on the list.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"1600\" height=\"566\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2025\/05\/image-35.png\" alt=\"\" class=\"wp-image-570988\"\/><\/figure>\n\n\n\n<p>To watch the changes in real time, untick the <em>Stop<\/em> button on the left. Otherwise, click <em>Update<\/em> to watch how the values change after the next iteration of the program execution. You can also configure a sampling period.<\/p>\n\n\n                                                <figure class=\"wp-block-image size-full\"><img decoding=\"async\" data-gif-src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2025\/05\/live_watches.gif\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2025\/05\/live_watches_preview-1.jpg\" alt=\"Working with live watches\" width=\"1500\" class=\"wp-image-571010\"\/><\/figure>\n                        \n\n\n<p>You can then perform the debugger actions, such as <em>Step Over <\/em>or <em>Step Into,<\/em> and observe how your variable values change.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Current limitations<\/h3>\n\n\n\n<p>The following features are not yet supported, but we plan to add them in the 2025.2 release:<\/p>\n\n\n\n<ul>\n<li>Suggestions and autocompletion for variable names.<\/li>\n\n\n\n<li>The ability to watch the values of structures, complex data types, and peripheral registries.<\/li>\n\n\n\n<li>Settings for data format, such as decimal, hex, and binary.<\/li>\n\n\n\n<li>Data history and the ability to export it in the CSV format.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Other updates<\/h2>\n\n\n\n<p><strong>Skipping non-user code with <em>Step Into<\/em><\/strong>: When using the <em>Step Into<\/em> action during debugging, you can now skip non-user code, such as library calls. The default stepping rules are pre-configured in <em>Settings | Build, Execution, Deployment | Debugger | Stepping<\/em>, and the IDE also reads configuration file types, such as <code>.natstepfilter<\/code> and <code>.natjmc<\/code>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"1600\" height=\"636\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2025\/05\/image-36.png\" alt=\"\" class=\"wp-image-570999\"\/><\/figure>\n\n\n\n<p><strong>Bundled CMake 4.0.0<\/strong>: We\u2019ve updated the bundled CMake version to v4.0.0, which removed compatibility with versions older than 3.5. For example, running a project with <code>cmake_minimum_required(VERSION 3.4)<\/code> in a <code>CMakeLists.txt<\/code> file now causes an error. However, you can use the <code>CMAKE_POLICY_VERSION_MINIMUM<\/code> variable to configure existing projects that are based on unsupported CMake versions (<a href=\"https:\/\/cmake.org\/cmake\/help\/latest\/variable\/CMAKE_POLICY_VERSION_MINIMUM.html\" target=\"_blank\" rel=\"noopener\">learn more<\/a> about the variable).<\/p>\n\n\n\n<p align=\"center\"><a class=\"jb-download-button\" href=\"https:\/\/www.jetbrains.com\/clion\/nextversion\/\" target=\"_blank\" rel=\"noopener\" data-test=\"blog-article-cta\"><i class=\"download-icon\"><\/i>DOWNLOAD CLION 2025.2 EAP<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Try the features and share your feedback<\/h2>\n\n\n\n<p>Your feedback is important in helping us refine new features, especially during the Early Access Program. We encourage you to try live watches and the other new features available in the latest EAP build. If you have any suggestions or run into any problems, please share them by submitting a ticket to our <a href=\"https:\/\/youtrack.jetbrains.com\/issues\/CPP\/\" target=\"_blank\" rel=\"noopener\">issue tracker<\/a> or commenting below.<\/p>\n","protected":false},"author":1508,"featured_media":571551,"comment_status":"closed","ping_status":"closed","template":"","categories":[826,89],"tags":[264,600,3506,8807],"cross-post-tag":[],"acf":[],"_links":{"self":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/clion\/570859"}],"collection":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/clion"}],"about":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/types\/clion"}],"author":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/users\/1508"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/comments?post=570859"}],"version-history":[{"count":10,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/clion\/570859\/revisions"}],"predecessor-version":[{"id":578996,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/clion\/570859\/revisions\/578996"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/media\/571551"}],"wp:attachment":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/media?parent=570859"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/categories?post=570859"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/tags?post=570859"},{"taxonomy":"cross-post-tag","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/cross-post-tag?post=570859"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}