Visual Studio Dual Monitor Layout: Watch / Debug Window continues to pop up on the screen to the left

Each time I start a debugging session, VS 2010 displays the Watch / Debug windows on the screen on the left. I then move it manually to the right. After the session, returning to the code and resuming the debugging session, this cursed Watch window appears again on the left.

It drives me crazy!
Why doesn't VS remember where I placed this window ???

+4
source share
3 answers

Are you stopping the debugging session with Shift+F5 or are you leaving the application that is being debugged? VS seems to forget about the window position if the debugging process was stopped at Shift+F5 .

0
source

I tried the solution I found on this post . Did not work. It looks like the same as the search dialog (see this post)

Completion of the docking station from the Watch / debug window to a more "stable" panel (class representation in my case).

This still looks like an annoying known bug in VS 2010. It sucks.

0
source

Visual Studio 2010 has at least 3 screen modes.

  • Normal
  • Full
  • Debug

You must export the window settings after entering the desired screen mode (in your case, debugging).

Steps

  • Start debugging your project.
  • Move the necessary windows (watch / debug) to the second monitor on the right.
  • Go to Tools> Import and Export Settings> Export Selected Environment Settings> General Settings> Window Layouts and export them to a file.
  • Load settings using import options in the same window

Visual studio will remember your settings and move the window to the second monitor on the right, whenever you enter the "debug" mode.

As a hint, it’s a great idea to create macros to load window options and assign keystrokes to switch between window modes, depending on what type you are in.

to create a macro to import a vssetting file: DTE.ExecuteCommand ("Tools.ImportandExportSettings", "-import: VSSetting file path")

0
source

Source: https://habr.com/ru/post/1339464/


All Articles