jeffshumphreys / filmcab

A film collector's management system

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Detect if debugging mode

jeffshumphreys opened this issue · comments

For speed. Can skip get cim call if in debugger.

if($env:TERM_PROGRAM -eq 'vscode') {

do some stuff...

}

if ($Host.Name -eq 'Visual Studio Code Host') {
Write-Output 'PowerShell Integrated Console'
}

$PSDebugContext

Got it to work