Skip to content

Commit 81fa4b6

Browse files
chore: autopublish 2023-01-28T15:37:04Z
1 parent 53c2757 commit 81fa4b6

3 files changed

Lines changed: 2 additions & 34 deletions

File tree

7.48 KB
Loading
10.9 KB
Loading

docs/rgp-lua/development-environment.md

Lines changed: 2 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -55,28 +55,7 @@ One effective way to do this is to detect modifier keys. If your script has a di
5555

5656
3. Inside the folder, edit `packages.json`, deleting the `enableBreakpointsFor` element under `debuggers` and adding a `breakpoints` element under `contributes`.
5757

58-
```diff
59-
--- package.json.original
60-
+++ package.json.revised
61-
@@ -21,21 +21,21 @@
62-
"devDependencies": {},
63-
"contributes": {
64-
+ "breakpoints": [
65-
+ {
66-
+ "language": "lua"
67-
+ &rbrace
68-
+ ],
69-
"debuggers": [
70-
{
71-
"type": "lua",
72-
"label": "Lua Debugger",
73-
- "enableBreakpointsFor": {
74-
- "languageIds": [
75-
- "lua"
76-
- ]
77-
- },
78-
"program": "./DebugAdapter.exe",
79-
```
58+
![Manifest Diff](assets/manifest_diff.png "Manifest Diff")
8059

8160
4. If VS Code was open, close and restart it. You may then be prompted to reload the window when VS Code notices that the extension has changed on disk.
8261

@@ -96,18 +75,7 @@ One effective way to do this is to detect modifier keys. If your script has a di
9675

9776
6. Type <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>D</kbd> or click on the "Run and Debug" icon in the side bar, then click on the "create a launch.json file" link. From the "Select debugger" dropdown that appears, select `Lua Debugger`. This will create a default `launch.json` that should include this snippet at the bottom of the file:
9877

99-
```json
100-
&lbrace;
101-
"name": "wait",
102-
"type": "lua",
103-
"request": "attach",
104-
"workingDirectory": "$&lbrace;workspaceRoot&rbrace;",
105-
"sourceBasePath": "$&lbrace;workspaceRoot&rbrace;",
106-
"listenPublicly": false,
107-
"listenPort": 56789,
108-
"encoding": "UTF-8"
109-
&rbrace;
110-
```
78+
![launch.json](assets/launch_json.png "launch.json")
11179

11280
8. Launch the `wait` configuration by selecting it from the dropdown at the top of the "Run and Debug" panel and clicking the arrow next to it (or hitting <kbd>F5</kbd>). This tells VS Code to listen for messages from remote execution of your script.
11381

0 commit comments

Comments
 (0)