Condividi tramite


Set Current Thread Command

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

Sets the specified thread as the current thread.

Syntax

Debug.SetCurrentThread index

Arguments

index

Required. Selects a thread by its index.

Example

>Debug.SetCurrentThread 1

See also