Sebastian Mense
Sebastian Mense

Reputation: 73

Visual Studio 2015 Express: Don't jump to next statement, when breaking the program

In Visual Studio, when you break (or pause) a program, the editor always shows me, what statement would be the next when I'm resuming and jumps right to it. This is everytime(?) a line which consumes most of the time.

In my case this is SwapBuffers(window) from GLFW.

What I want now, is that he still marks it, but he shouldnt jump away from where I am because it's really annoying. Is there a way to turn this off?

Upvotes: 1

Views: 331

Answers (3)

Jim
Jim

Reputation: 86

No, this is not an option you can turn off.

If you're using Visual Studio, pull the annoying tab out and dock it to one side.

https://msdn.microsoft.com/en-us/library/4k7zyeba.aspx

Upvotes: 1

Wim Coenen
Wim Coenen

Reputation: 66733

The keyboard shortcut for pausing execution is ctrl+alt+Break.

The keyboard shortcut for navigating back to the previous position is ctrl+- (use the minus sign which is not on the numeric keypad).

So you can just hit these both of these shortcuts manually, or you can use something like AutoHotkey to program your own shortcut which sends both of them automatically, with a small delay between them.

Upvotes: 2

user5226582
user5226582

Reputation: 1986

"Just My Code" option might help - it always skips foreign code in debug mode.

feature that steps over system, framework, and other non-user calls and collapses those calls in the call stack windows

enter image description here

Upvotes: 1

Related Questions