You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,24 +14,24 @@ Let's go ahead and open from the application menu bar at the top `File->New Wind
14
14
- Select the newly opened window and do `File->Open... (⌘O)` and navigate to the directory which holds the files you wish to debug.
15
15
>Tip: Use ⌘↑ to navigate to the parent directory.
16
16
17
-
- In the Explorer view project directory should appear as the root of the Workspace. This is crucial so that later in the .json files we can call this as ${workspaceFolder}.
17
+
- In the Explorer view project directory should appear as the root of the Workspace. This is important so that later in the .json files we can call this as ${workspaceFolder}.
18
18
19
19
[**Quick video of creating the following template configuration files**](https://vimeo.com/659664828)
20
20
21
-
- Open the .c file you wish to debug.
21
+
- Open the .c file you wish to debug. `ft_strcat.c` in case of this repo.
22
22
23
23
- Choose from the top-bar application menu `Terminal -> Run Build Task (⇧⌘B)`.
24
24
25
-
- From the list of detected tasks select the cogwheel (`Configure task`) from the right hand side of the first task `(C/C++: clang build active file, compiler: /usr/bin/clang)`.
25
+
- From the popped up list of detected tasks select the cogwheel (`Configure task`) from the right hand side of the task named`(C/C++: clang build active file, compiler: /usr/bin/clang)`.
26
26
27
-
- Inside .vscode directory `tasks.json` file should appear with a preconfigured setup.
27
+
- Inside .vscode directory (should be inside root of our repo)`tasks.json` file should appear with a preconfigured setup.
28
28
**This is one of the two crucial files in debugging with Visual Studio Code. Another one being launch.json**
29
29
30
30
> Tip: Hover your mouse over the variables for clarifying mouseover texts.
31
31
32
-
From the file we can notice the `label` for the task; `command` to run, which is our compiler: clang; and the `arguments` to our command.
32
+
From the file we can notice the `label` for the task; `command` to run, specifying our compiler: clang; and the `args` list.
33
33
34
-
- Inside the arguments list we specify our compilation flags and arguments, each divided into a different pair of double quotes whenever our original command would require a whitespace. Observe from the code below.
34
+
- Inside the arguments list we specify compilation flags and arguments, enclosed in double quotes and separated by commas and, for the sake of readibility, newlines.
35
35
36
36
> Tip: Use Control+Spacebar for IntelliSense to see all contextually proper variable names. Navigate your cursor with arrow keys to change context and select an item from the list.
0 commit comments