Idea 调试窗口 变量 Debug Tool Window. Variables #

本文介绍了在Idea中,当隐藏'Watches'窗格时,调试工具栏会在'Variables'窗格中显示,用于展示配置的监视表达式。通过按钮可以控制'Watches'窗格的隐藏与显示,影响调试焦点。每个变量左侧的图标表示其类型,包括静态、字段、数组、基本类型、对象和参数等。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

This toolbar appears only when the Watches pane is hidden so the configured watches are displayed in the Variablespane. Hiding/showing the Watches pane is controlled through the icons debugger watch svg toggle button:

仅当“监视”窗格处于隐藏状态时,才会显示此工具栏,以便在“变量”窗格中显示已配置的监视。隐藏/显示“手表”窗格是通过切换按钮控制的:

  • When the button is pressed, which is its default status, the Watches pane is hidden and the toolbar is shown in the Variables pane. So doing, the focus is with the Debugger tab.

  • When the button is released, the toolbar moves to the Watches pane.

 按下按钮(默认状态)时,将隐藏“监视”窗格,工具栏将显示在“变量”窗格中。这样做,重点是调试器选项卡。

释放按钮后,工具栏将移至“监视”窗格。

Item

Shortcut

Description

icons general add svg

Insert

Click this button to create a new watch. (单击此按钮可创建新手表。)

icons general remove svgDelete

Click this button to remove the selected watch from the list.

icons actions previousOccurence svgicons actions nextOccurence svgAlt+UpAlt+Down

Use these buttons to change the order of watches.

icons actions copy svgCtrl+D

Use this button to create a copy of the selected watch.

Show watches in Variables tab

Show watches in Variables tab

 

在Variables标签中显示手表

Use this toggle button to have the Watches pane hidden or shown. By default, the button is pressed and displayed on the toolbar of the Variables pane. Consequently, the Watches pane is hidden and the watches are shown in theVariables pane.
  • To have the Watches pane displayed separately and view the configured watches in it, release the Show watches in Variables tab toggle button. The Watches pane appears with the Show watches in Variables tabtoggle button on the toolbar.

  • To hide the Watches pane and view the watches in the Variables pane, press the Show watches in Variables tab toggle button on the toolbar of the Watches pane. The toggle button returns to the default location on the toolbar of the Variablespane.

Variable types #

The icon on the left of each variable indicates its type:

  • icons nodes static svg: static

  • icons nodes field svg: field

  • icons debugger db array: array

  • icons debugger db primitive: primitive

  • icons debugger db db object: object  对象

  • icons nodes parameter svg: parameter  参数

 来源于:https://www.jetbrains.com/help/idea/debug-tool-window-variables.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值