Skip to main content

Debug prompt

info

This feature only works in powershell for the time being.

The debug prompt is displayed when you debug a script from the command line or Visual Studio Code. The default is [DBG]: .

You can use go text/template templates extended with sprig to enrich the text. Environment variables are available, just like the console_title_template functionality.

Configuration

You need to extend or create a custom theme with your debug prompt override. For example:

{
"debug_prompt": {
"background": "transparent",
"foreground": "#ffffff",
"template": "Debugging "
}
}

Properties

NameTypeDescription
foregroundstringcolor
foreground_templatesstringcolor templates
backgroundstringcolor
background_templatesstringcolor templates
templatestringa go text/template template extended with sprig utilizing the properties below - defaults to [DBG]:

Template (info)

NameTypeDescription
.Rootbooleanis the current user root/admin or not
.PWDstringthe current working directory
.Folderstringthe current working folder
.Shellstringthe current shell name
.UserNamestringthe current user name
.HostNamestringthe host name
.Codeintthe last exit code
.Env.VarNamestringAny environment variable where VarName is the environment variable name