WernerCD
WernerCD

Reputation: 2157

Disable Sources panel in Chrome

I'm working through an Angular course via Visual Studio 2019 and Google Chrome (same thing happens in the New Edge).

Running F5 in Visual Studio brings up the website with rebuild/refresh on save. Great! The problem I have is it auto-switched to sources.

Can I disable the auto-switch to sources so it stays in Console like I want it too? It's real annoying to only want the Console yet always get kicked to sources.

enter image description here

Animated Gif

Edit: Specs of machine. Ask for more if needed.

Upvotes: 6

Views: 2936

Answers (2)

A. Johan
A. Johan

Reputation: 426

I had the same issue and it was driving me nuts! The way I managed it to stop switching was to go to into the DevTools settings -> Preferences.

Under Sources options, uncheck Focus Sources panel when triggering a breakpoint.

Upvotes: 20

WernerCD
WernerCD

Reputation: 2157

After much testing and toying around, the issue was solved by removing the .vs folder in the solution folder.

A clean .vs folder is created and the problem disappears.

Returning the "bad" .vs folder returns the issue.

Upvotes: -4

Related Questions