HeZudao
HeZudao

Reputation: 31

the WATCH panel disappear when I debug my code in VS Code

There should be four panels(VARIABLES, WATCH, CALL STACK, BREAKPOINTS) on the left side, but now there is only three.

I try my best to find how to open the WATCH, but failed. I can't find related settings in View or Setting.json

Can anyone help me? Thank you!

pic1 pic2

Upvotes: 3

Views: 2192

Answers (4)

Christiaan
Christiaan

Reputation: 29

The solutions did not work for me, I found another solution:

  1. Open command pallet
  2. type "view: open view"
  3. A new menu appears, type "Watch"
  4. Select the Watch option and then you can drag the "Watch panel" back into your normal debug panel on the left

Hope it helps :)

Upvotes: 0

ripreal
ripreal

Reputation: 447

The same issue happened to me. Somehow watch section inside debug panel became separate panel and i did not notice that at first. Take a closer look at left vscode panel

Upvotes: 0

YeeHaw1234
YeeHaw1234

Reputation: 2495

I was able to run my application and set a break-point. Right-clicked on a variable and selected "add to watch" and the watch section appeared.

A new "run and debug" icon in the side-bar appeared as well. It appears that I accidentally dragged the watch section to the sidebar.

I was able to open the "run and debug" menu and drag the new icon off the sidebar and into the menu. My "Watch" section is now back where it should be.

Upvotes: 2

Rafael Bartz
Rafael Bartz

Reputation: 328

Try selecting one variable of your code (double click), and then click with the right button of your mouse, and choose the option "Add To Watch" on the drop-down nenu. The Watch panel will show again. Let me know if it worked.

Upvotes: 0

Related Questions