Skip to content

Commit 9a7ec43

Browse files
committed
add description for launch.json
1 parent 1a74e1a commit 9a7ec43

1 file changed

Lines changed: 28 additions & 1 deletion

File tree

docs/usage/Debugging.md

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ To support the debugging function, a DAP server will run on the UniVerse server
1212

1313
### Downloading DAP Server
1414

15-
You must login to [RBC platform](https://rbc.rocketsoftware.com/) to download DAP server binaries. Through below steps to download related binaries:
15+
You must login to [RBC platform](https://rbc.rocketsoftware.com/) to download DAP server binaries. Follow below steps to download related binaries:
1616

1717
1) Click button "Search Product Availability"
1818

@@ -98,6 +98,33 @@ Select the **MVBasic Debug** from the Select environment dialog box.
9898

9999
![](../img/debug_type.png)
100100

101+
Then a default debugging configuration file launch.json will be generated in directory .vscode.
102+
103+
```
104+
{
105+
"version": "0.2.0",
106+
"configurations": [
107+
{
108+
"type": "mvbasic",
109+
"request": "launch",
110+
"name": "Launch Program",
111+
"program": "",
112+
"stopOnEntry": true,
113+
"preLaunchTask": "BASIC: Build",
114+
"dependencies": []
115+
}
116+
]
117+
}
118+
```
119+
120+
- "type": "mvbasic" is required to build BASIC program files.
121+
- "request": keep this value "launch" to launch a program.
122+
- "name": this is the name of the launch task. You can change the name to other values.
123+
- "program": if this value is empty, current focused file will be debugged. You can also set this value to another BASIC program file's absolute path. This file will be compiled before debugging.
124+
- "stopOnEntry": used to control whether the program will be stopped at the first runnable line when start debugging. Currently only true is supported.
125+
- "preLanuchTask": this is used to run pre-required task before debugging. In our extension, we use this setting to compile the BASIC program in setting "program" first.
126+
- "depenedncies": put other BASIC program files here if they need to be compiled before debugging.
127+
101128
From the **Run and Debug** view, set the launch option to **Launch Program**. Then press the F5 button to start debugging.
102129

103130
![](../img/debug_launch_program.png)

0 commit comments

Comments
 (0)