Debug PowerShell with and without VS Code

  Рет қаралды 20,240

John Savill's Technical Training

John Savill's Technical Training

Күн бұрын

Пікірлер: 34
@P0cketfull0fsunshine
@P0cketfull0fsunshine 3 жыл бұрын
Thanks for this John. I've been using VSCode and PowerShell together for a while now but never bothered to explore the debugging options. Really useful and well explained as usual.
@NTFAQGuy
@NTFAQGuy 3 жыл бұрын
Great to hear!
@geroffmilan3328
@geroffmilan3328 2 жыл бұрын
I've been using it for about 2 years now, and VSCide is great... but I still cannot figure out how to get debugging to work, given that I need to use Windows PowerShell v5.x AND PWSH v7. I have both terminals in my workspace, but my v5.x terminal can't seem to find modules which are installed in the v5.x module paths. Guess I'll continue to debug by hand in the relevant terminal!
@edwinpaul8474
@edwinpaul8474 3 жыл бұрын
Great video John. Thanks for explaining the debug concept so well. The Breakpoint Debug Expression/Hit Count was new to me. This definitely helps. Thanks again!!
@NTFAQGuy
@NTFAQGuy 3 жыл бұрын
Glad it was helpful!
@sirsquirrel0
@sirsquirrel0 3 жыл бұрын
Nice one John. Enjoyed the content. All the best.
@ZivRivkis
@ZivRivkis 3 жыл бұрын
Very easy and helpful demo. Thanks John!
@NTFAQGuy
@NTFAQGuy 3 жыл бұрын
Welcome, thanks for watching
@Our1stPlanet
@Our1stPlanet 2 жыл бұрын
Excellent, one of the best videos that I have ever seen.
@MallocArray
@MallocArray 3 жыл бұрын
Thanks for this. I knew there was a debugger in VS Code but I had problems with getting it to do what I expected when I first switched and never went back to it. Now I'll give it another shot.
@NTFAQGuy
@NTFAQGuy 3 жыл бұрын
Awesome, good luck!
@maxhax4243
@maxhax4243 3 жыл бұрын
I predicted that this video was coming. Excellent approach and examples, as always :)
@NTFAQGuy
@NTFAQGuy 3 жыл бұрын
lol
@psymonious
@psymonious 3 жыл бұрын
That was great! So far I used it just from time to time, but I think this video just bumped up my confidence to prefer this method. It is way more efficient!
@NTFAQGuy
@NTFAQGuy 3 жыл бұрын
Awesome! Took me a while as well :)
@iamdedlok
@iamdedlok 3 жыл бұрын
Good stuff John! I learnt a couple of new things today! I never really used the power of step over, step out before! Now watching you do it was like an 'aha!' moment. I feel so dumb not using it before!! Conditional breakpoints are very common in .NET, I super psyched to see PowerShell/vscode supporting this. Thanks again John, I have shared this video with my friends :)
@NTFAQGuy
@NTFAQGuy 3 жыл бұрын
Glad it was helpful!
@mackarof77
@mackarof77 3 жыл бұрын
i know 2 guys from usa and both of them are powershell coders and power-lifters or ironmans in spare time what a coincidence - or fact that all powershell guys doin power-trainings also ? its good that myth is falling and become untrue - to being coder is to be unhealthy zombie attached to monitor whole day :D Great stuff dude 'kalokagathians' still exists! :)greetings from slovakia and cheers to all power-people :)
@NTFAQGuy
@NTFAQGuy 3 жыл бұрын
Power for power :)
@danamatt2
@danamatt2 3 жыл бұрын
Well done. Nice and concise! Although I would have to say; I wouldn't bet on scissors, the odds would be against me!!! In other words; you have another bug (not that the steps you provided would help much with this one. It needs more of a unit test approach). -Maximum doesn't do what one (me for sure) might assume: 1..1000 | % {Get-Random -Minimum 1 -Maximum 9} | group | select name,count
@NTFAQGuy
@NTFAQGuy 3 жыл бұрын
hehe, nice, thanks :-D -Maximum 10 it is
@jcgermain6280
@jcgermain6280 3 жыл бұрын
I'm a newbe... And after the video, I had the feeling to be an expert, I'm not :-) Great video, everything needed for a sound start. Congrat !
@NTFAQGuy
@NTFAQGuy 3 жыл бұрын
Glad it was helpful!
@gopeisho
@gopeisho 3 жыл бұрын
This came in very handy the other day in debugging a foreach loop that was giving a bad value every 7th user in the loop.
@NTFAQGuy
@NTFAQGuy 3 жыл бұрын
Awesome!
@erichanson5628
@erichanson5628 Жыл бұрын
Brilliant!
@kristurk1
@kristurk1 3 жыл бұрын
Good Video John, Although I spent the first 20 minutes wondering when you were going to start inputting your choice i.e. playing against the code :P
@NTFAQGuy
@NTFAQGuy 3 жыл бұрын
lol, I didn't want to constantly lose :-D My DevOps master class we'll do that ;-)
@iamdedlok
@iamdedlok 3 жыл бұрын
@@NTFAQGuy Looking forward to that good sir! I guess you will be using Bicep as an IaC tool?
@NTFAQGuy
@NTFAQGuy 3 жыл бұрын
@@iamdedlok 🤫
@ToTCaMbIu
@ToTCaMbIu 3 жыл бұрын
Commenting for algorithm ! :)
@NTFAQGuy
@NTFAQGuy 3 жыл бұрын
Legend!
@jackgleeson8321
@jackgleeson8321 3 жыл бұрын
Do you think Microsoft might fully remove powershell from Windows 10 in future versions? In favour of ps 7 and vs code.
@NTFAQGuy
@NTFAQGuy 3 жыл бұрын
There are benefits in it not being part of the os in terms of how they can update, add features etc so honestly don’t know.
PowerShell Master Class - Data and Objects
46:10
John Savill's Technical Training
Рет қаралды 26 М.
How to use PowerShell Try, Catch and the Write-Verbose and Write-Debug
19:23
John Savill's Technical Training
Рет қаралды 20 М.
If people acted like cats 🙀😹 LeoNata family #shorts
00:22
LeoNata Family
Рет қаралды 45 МЛН
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 130 МЛН
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН
Everything You Need to Know about Debugging in VSCode
7:02
ArjanCodes
Рет қаралды 47 М.
Getting Ready for DevOps with PowerShell and VS Code
40:28
John Savill's Technical Training
Рет қаралды 33 М.
you NEED to use VS Code RIGHT NOW!!
12:48
NetworkChuck
Рет қаралды 581 М.
PowerShell Master Class - Connecting Commands Together
1:06:50
John Savill's Technical Training
Рет қаралды 108 М.
Become a PowerShell Debugging Ninja by Kirk Munro
1:46:58
PowerShell.org
Рет қаралды 16 М.
Debugging PowerShell Scripts in Visual Studio Code
22:16
Adam Driscoll
Рет қаралды 16 М.
25 VS Code Productivity Tips and Speed Hacks
11:35
Fireship
Рет қаралды 2,4 МЛН
How to Debug Code Like a Pro
11:11
Lama Dev
Рет қаралды 66 М.
PowerShell Errors and Exceptions Handling
27:49
TechThoughts
Рет қаралды 30 М.
If people acted like cats 🙀😹 LeoNata family #shorts
00:22
LeoNata Family
Рет қаралды 45 МЛН