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/usage/Debugging.md
+19-4Lines changed: 19 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,8 @@ Versions: For offline mode debugging 8.2.4 or higher and for online mode debuggi
16
16
17
17
Platforms: Windows, Linux, AIX
18
18
19
+
**Note:** For more details, please refer [Rocket-MV-BASIC-Extension-features-support-matrix](https://my.rocketsoftware.com/RocketCommunity/s/article/Rocket-MV-BASIC-Extension-features-support-matrix).
20
+
19
21
### A high performance debugging feature
20
22
21
23
A high-performance debugging feature is supported on UniVerse 11.4.1 and UniData 8.3.1. To use this feature, you must upgrade to UniVerse 11.4.1 / UniData 8.3.1 or higher version. Please see [Debugging Binaries Releases](./DAPRelease.md) for more details.
@@ -40,7 +42,7 @@ Before debugging, open the BASIC program first.
40
42
41
43
### Debugging without a launch file
42
44
> **Note** :
43
-
> Debugging without a launch file works properly in offline mode only; in online mode, the behavior is uncertain.
45
+
> Debugging without a launch file works properly in offline mode only; in online mode, please create launch file.
44
46
45
47
- Click the **Run and Debug** icon on from the left menu bar. The **Run and Debug** view will display if you have no `launch.json` file in your project.
46
48
@@ -55,7 +57,17 @@ On successful compilation, the debugging process will stop at the first runnable
55
57
56
58
### Debug with launch file
57
59
58
-
You can also configure a `launch.json` file for debugging.
60
+
You have the option to configure the type and task parameters in the launch.json file which helps VS Code know how to run and debug your code.
61
+
62
+
`launch.json` file helps VSCode know how to run and debug your code.
63
+
64
+
`launch.json` in MVVS has the type and task parameters, it means that VSCode is first running a task before starting the debugging process.
65
+
66
+
type: The type parameter tells VS Code what type of code you're working with. Valid values are: MVBasic, Python.
67
+
68
+
task: The task parameter is a step that needs to happen before debugging starts, like preparing your code.
69
+
70
+
You have the option to tell VS Code which debugging settings to use in the launch.json file.
59
71
60
72
In the **Run and Debug** view, click the create a `launch.json` file link.
61
73
@@ -65,7 +77,7 @@ Select the **MVBasic Debug** from the Select environment dialog box.
65
77
66
78

67
79
68
-
Then a default debugging configuration file launch.json will be generated in directory .vscode.
80
+
A default debugging configuration file named launch.json is generated in directory .vscode and contains the following.
69
81
70
82
```
71
83
{
@@ -94,7 +106,10 @@ Then a default debugging configuration file launch.json will be generated in dir
94
106
- "dependencies": put other BASIC program files' absolute paths here if they need to be compiled before debugging. For example, "C:\U2\UV\XDEMO\TEST".
95
107
- "arguments": put additional debugging online· here. Please refer to your UniVerse / UniData user documentation for more details. By default, this setting doesn’t appear in the configuration file, but can be added manually if needed.
96
108
97
-
For online mode create build task as mentioned in [Online Editing](./OnlineEditing.md)
109
+
>#### To enable debugging in online mode, the `tasks.json` file is required.
110
+
>For online mode, create a build task as shown in [Online Editing](./OnlineEditing.md).
111
+
>
112
+
>For more details on task refer [Compile](./Compile.md).
98
113
99
114
From the **Run and Debug** view, set the launch option to **Launch Program**. Then press the F5 button to start debugging.
0 commit comments