Skip to content

Commit 5d7ccdb

Browse files
chore: autopublish 2023-01-26T22:23:37Z
1 parent bda118d commit 5d7ccdb

1 file changed

Lines changed: 11 additions & 44 deletions

File tree

docs/rgp-lua/development-environment.md

Lines changed: 11 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -94,50 +94,17 @@ One effective way to do this is to detect modifier keys. If your script has a di
9494
debuggee.start(json, { redirectPrint = true })
9595
```
9696

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"
141108
```
142109

143110
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

Comments
 (0)