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: vscode/README.md
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,7 @@
1
1
2
-
Alternatively, VS Code is available for debugging, here is a simple guide (based on the [MS documentation](https://code.visualstudio.com/docs/cpp/cmake-linux)):
2
+
# How to setup vscode-like editors for debugging win_flex/win_bison
3
+
4
+
Here is a simple guide (based on the [MS documentation](https://code.visualstudio.com/docs/cpp/cmake-linux)):
3
5
1. Make sure the [Prerequisites](https://code.visualstudio.com/docs/cpp/cmake-linux#_prerequisites) are installed.
4
6
2.[Select a compiler kit](https://code.visualstudio.com/docs/cpp/cmake-linux#_select-a-kit), any of the native `amd64` version of MSVC is recommended for compatibility - any of the rest with `x86` is cross-compiling a 32-bit version of `win_flex`/`win_bison`.
5
7
@@ -19,15 +21,14 @@ NOTE: Click `Scan for kits` when setting up C/C++ debugging for the first time i
19
21
- here is a sample for `win_flex` target:
20
22
```json
21
23
"args": [
22
-
"calc.l"
24
+
"calc.l",
23
25
],
24
26
```
25
27
- here is a sample for `win_bison` target:
26
28
```json
27
29
"args": [
28
-
"--header-file=sample.tab.h",
29
-
"-osample.tab.c",
30
-
"sample.l"
30
+
"-d",
31
+
"calc.y",
31
32
],
32
33
```
33
34
- NOTE: This example uses source files without full path was achieved by setting `cwd`
0 commit comments