Skip to content

Commit c4c81f6

Browse files
committed
Fixing Broken Images and Grammar
- Fixed broken images in a migrated post (vscode debugging) - Fixed some grammar in the about section
1 parent 253b6c7 commit c4c81f6

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

content/about.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ About me:
3131
- I love solving problems and customizing every little aspect of things.
3232
* _(hence Arch with Hyprland and Neovim)_
3333
- I have the attention span of a housefly sometimes.
34-
* _(But that power has is the reason why I have dabbled in to many different tech stacks and languages!)_
34+
* _(But that power is the reason why I have dabbled in to many different tech stacks and languages!)_
3535

3636
---
3737

content/posts/vscode-debug-breakpoints/vscode-debug-breakpoints.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,15 @@ I love debugging, maybe its weird, but I really do enjoy it. If you want to get
8888

8989
So I dive into debugging my function, add a breakpoint to it and hit `F11` to step into the function. As I continue to step through it I of course hit my `foreach` loop. Here is the part thats kind of a bummer. The first 3 items in my `$loadedModules` list are those built-in PowerShell modules. Ugh, this means each time I debug I need to step through these 3, over, and over, and over... What a serious waste of time!
9090

91-
![Debug1](/posts/vscode-debug-breakpoint/Debug1.PNG)
91+
![Debug1](/posts/vscode-debug-breakpoints/Debug1.PNG)
9292

9393
Conditional breakpoints to the rescue, these little guys are really cool. They are user defined breakpoints where if on a certain line, the condition is met, the debugger pauses and lets you do your debuggin' thang!
9494

9595
To add a conditional breakpoint you can use the menu or in the debug pane of VS Code right click where you would normally add a breakpoint and select **Add Conditional Breakpoint...**.
9696

97-
![Debug2](/posts/vscode-debug-breakpoint/Debug2.PNG)
97+
![Debug2](/posts/vscode-debug-breakpoints/Debug2.PNG)
9898

99-
![Debug3](/posts/vscode-debug-breakpoint/Debug3.PNG)
99+
![Debug3](/posts/vscode-debug-breakpoints/Debug3.PNG)
100100

101101
A special line will showup on the line you started on with two options, **Hit Count** and **Expression**. A breakdown of the choices...
102102

@@ -105,15 +105,15 @@ A special line will showup on the line you started on with two options, **Hit Co
105105

106106
Lets add one, since we want to see how this puppy runs when processing the Pester module we'll add a conditional breakpoint for that specifically. We write it as if we were going to write any other type of PowerShell conditional statement.
107107

108-
![Debug4](/posts/vscode-debug-breakpoint/Debug4.PNG)
108+
![Debug4](/posts/vscode-debug-breakpoints/Debug4.PNG)
109109

110110
...and hit enter. Now we see it and the red breakpoint circle has a special `=` in it indicating its a conditional breakpoint! If you go crazy with this you can hover over them to see what they are (as well as still see them listed with all the other normal breakpoints in the Breakpoints section in Debug pane).
111111

112-
![Debug5](/posts/vscode-debug-breakpoint/Debug5.PNG)
112+
![Debug5](/posts/vscode-debug-breakpoints/Debug5.PNG)
113113

114114
Now, rather than having a single normal breakpoint and stepping through the loop multiple times, we can pause the debugger the exact moment that `$module.Name -eq 'Pester'` evaluates to `$true`.
115115

116-
![Debug6](/posts/vscode-debug-breakpoint/Debug6.PNG)
116+
![Debug6](/posts/vscode-debug-breakpoints/Debug6.PNG)
117117

118118
Now it doesn't matter what position Pester ends up in the list, we'll pause when we hit it regardless of if its at `[0]` or `[101]`. Pretty nifty.
119119

0 commit comments

Comments
 (0)