N
N
NewDevLab2020-07-27 22:28:19
PowerShell
NewDevLab, 2020-07-27 22:28:19

Debugging under Visual Studio Code?

I am running VSCode as admin.
I open a folder and want to debug scripts.
It's not the admin who writes anyway, it broke in July and how to fix it?
He somehow launches the console with his permissions or something.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
MaxKozlov, 2020-07-27
@NewDevLab

I have no problems in the default configuration (1.47.3, in the user folder).
settings.json is there? Is everything there default or some extras?
checked on a simple file

if (([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) {
 "I'm Admin"
}
else {
  "Im NOT"
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question