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: docs/rgp-lua/development-environment.md
+11-44Lines changed: 11 additions & 44 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -94,50 +94,17 @@ One effective way to do this is to detect modifier keys. If your script has a di
94
94
debuggee.start(json, { redirectPrint = true })
95
95
```
96
96
97
-
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` file that should look like this:
98
-
99
-
```json
100
-
{
101
-
"version": "0.2.0",
102
-
"configurations": [
103
-
{
104
-
"name": "launch-lua",
105
-
"type": "lua",
106
-
"request": "launch",
107
-
"workingDirectory": "${workspaceRoot}",
108
-
"sourceBasePath": "${workspaceRoot}",
109
-
"executable": "${workspaceRoot}/lua.exe",
110
-
"arguments": "main.lua",
111
-
"listenPublicly": false,
112
-
"listenPort": 56789,
113
-
"encoding": "UTF-8",
114
-
"env": {}
115
-
},
116
-
{
117
-
"name": "launch-gideros",
118
-
"type": "lua",
119
-
"request": "launch",
120
-
"workingDirectory": "${workspaceRoot}",
121
-
"giderosPath": "C:/Program Files (x86)/Gideros",
122
-
"gprojPath": "${workspaceRoot}/GPROJ.gproj",
123
-
"jumpToGiderosErrorPosition": false,
124
-
"stopGiderosWhenDebuggerStops": true,
125
-
"listenPublicly": false,
126
-
"listenPort": 56789,
127
-
"encoding": "UTF-8"
128
-
},
129
-
{
130
-
"name": "wait",
131
-
"type": "lua",
132
-
"request": "attach",
133
-
"workingDirectory": "${workspaceRoot}",
134
-
"sourceBasePath": "${workspaceRoot}",
135
-
"listenPublicly": false,
136
-
"listenPort": 56789,
137
-
"encoding": "UTF-8"
138
-
}
139
-
]
140
-
}
97
+
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` file with a `wait` section that should look like this:
98
+
99
+
```
100
+
"name": "wait",
101
+
"type": "lua",
102
+
"request": "attach",
103
+
"workingDirectory": "${workspaceRoot}",
104
+
"sourceBasePath": "${workspaceRoot}",
105
+
"listenPublicly": false,
106
+
"listenPort": 56789,
107
+
"encoding": "UTF-8"
141
108
```
142
109
143
110
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.
0 commit comments