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/index.md
+27-11Lines changed: 27 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
-
## About The Project
1
+
#Rocket MV Basic for VS Code
2
2
3
-
Rocket MV BASIC for VS code is a free Visual Studio Code Extension created by Rocket Software. The purpose of this extension is to enable BASIC developers to develop MV BASIC applications in one of the most popular development platforms- Microsoft Visual Studio Code. Rocket MV BASIC for VS code provides users with an exceptional editing experience.
3
+
Rocket MV BASIC for VS Code is a free Visual Studio Code extension created by Rocket Software. This extension enables BASIC developers to modernize their MultiValue applications in one of the most popular development platforms with an exceptional editing experience.
4
4
5
5
## Features
6
6
7
-
This extension includes the following features:
7
+
This extension allows:
8
8
9
9
- BASIC statements / keywords highlighting
10
10
- Semantic highlighting
@@ -22,20 +22,34 @@ This extension includes the following features:
22
22
- Add customized documentation for functions, subroutines, or labels
23
23
- Show syntax and grammar errors
24
24
- Prompt parameters of BASIC internal functions
25
-
- Compile / Catalog / Debug BASIC programs on the U2 server、
25
+
- Compile / Catalog BASIC programs on the U2 server
26
+
- Debug BASIC program files
26
27
- Remote editing of BASIC program files on a U2 server (preview)
27
28
28
-
## Quick Start
29
+
## Getting started
29
30
30
-
Requirements: [VS Code](https://code.visualstudio.com/) 1.75 or higher version is required.
31
+
Requirements:
32
+
33
+
1.[VS Code](https://code.visualstudio.com/) version 1.75 or higher.
34
+
2.[JDK](https://www.oracle.com/java/technologies/downloads/) or [OpenJDK](https://openjdk.org/projects/jdk/20/) version 11 or higher.
35
+
36
+
### Install & configure the extension
31
37
32
38
1. Install this extension from the VS Code Marketplace.
33
39
40
+
*Step 1*: Open **Visual Studio Code**.
41
+
42
+
*Step 2*: Click the **Extensions** icon  (<kbd>CTRL</kbd> + <kbd>SHIFT</kbd> + <kbd>X</kbd>). This opens the **EXTENSIONS** panel.
43
+
44
+
*Step 3*: Search for **Rocket MV Basic**.
45
+
46
+
*Step 4*: Click **Install** and wait for the installation to complete.
47
+
34
48
2. Download, install and setup the Java environment. Note that you can skip Step 1 and Step 2 if you already have Java 11+ (OpenJDK or Oracle JDK) installed.
35
49
36
-
*Step 1*: Download the Open JDK 11 or above GA releases zip file from [this page](http://jdk.java.net/archive/).
50
+
*Step 1*: Click **Manage**  **>** **Extension settings**. This opens the **Extension Settings** window.
37
51
38
-
*Step 2*: Unzip the downloaded zip file to a temporary location on your system (for example, "*C:\ThirdParty\open-jdk-11*").
52
+
*Step 2*: In the **JDK Environment** section enter the full path to the JDK **bin** folder. For example., *C:\jdk-20\bin*.
39
53
40
54
*Step 3*. Open User Settings (use the appropriate option listed below):
41
55
@@ -59,11 +73,13 @@ Requirements: [VS Code](https://code.visualstudio.com/) 1.75 or higher version i
59
73
60
74
**Note**: Using this method, an existing working environment that requires a different version of Java would not be impacted and the extension will work properly in the Java 11 (or above) environment.
61
75
62
-
3. Select "File" > "Open Folder" to open a folder that contains the BASIC program files you want to view or edit. You can also add multiple folders to the workspace using "File" > "Add Folder to Workspace". We recommend that you open the U2 account level folders to avoid encountering exceptions.
76
+
### Open an account folder as a workspace
77
+
78
+
1. Select "File" > "Open Folder" to open a folder that contains the BASIC program files you want to view or edit. You can also add multiple folders to the workspace using "File" > "Add Folder to Workspace". We recommend that you open the U2 account level folders to avoid encountering exceptions.
63
79
64
80
**Note**: This extension is designed to work with folders/directories rather than individual program files. If you open a single file, some functions may be limited.
65
81
66
-
4. Activate the extension.
82
+
2. Activate the extension.
67
83
68
84
- By default, the extension is automatically activated when opening a file with the suffix ".B". If your BASIC program files don’t end with a ".B" suffix, please refer to the FAQ to see how to customize the rules for activating the extension automatically.
69
85
- If the extension is not activated automatically, please open the *Command Palette* in VS code(use any option listed below), and enter the "Activate Rocket MV BASIC" command to activate it manually.
@@ -114,7 +130,7 @@ Click the links below to learn more about using each feature. You can also refer
Upgrading VS Code may potentially introduce some issues that could result in anomalies with the compilation or debugging functions of our extension. In such cases, you can consider downgrading VS Code as a workaround. We have summarized a list of recent stable versions of VS Code for your reference.
Please check whether this feature is supported for your U2 server and platform according [this page](./DAPRelease.md).
5
+
6
+
- If yes, you need download and configure related binaries.
7
+
8
+
- If not, do not change your environment.
9
+
10
+
To configure the debugging related binaries, please follow below steps.
11
+
12
+
#### Windows
13
+
14
+
1. Copy **dap_agent.exe** and **grpcs.exe** from the package to your UniVerse **bin** folder. E.g., *C:\U2\UV\bin*
15
+
16
+
2. Verify whether the unirpcservices file contains **grpcs** service. If **grpcs** service doesn't exist, you must add it manually. Add the new service as shown below to the **unirpcservices** file:
17
+
18
+
```
19
+
grpcs <full_path_to_grpcs.exe> * TCP/IP 0 3600
20
+
```
21
+
22
+
The 'unirpcservices' file can be found in your U2 server installation folder: for example, **C:\U2\unishared\unirpc\unirpcservices**.
23
+
24
+
#### Linux
25
+
26
+
1. Copy **dap_agent** and **grpcs** from the package to your UniVerse **bin** folder. For example, */usr/u2/uv/bin/*
27
+
28
+
2. Verify whether the **unirpcservices** file contains the **grpcs** service. If the **grpcs** service doesn't exist, you must add it manually. Add the new service as shown below to the **unirpcservices** file:
29
+
30
+
```
31
+
grpcs <full_path_to_grpcs> * TCP/IP 0 3600
32
+
```
33
+
34
+
The **unirpcservices** file can be found in your U2 server installation folder. For example, **/usr/u2/unishared/unirpc/unirpcservices**.
Copy file name to clipboardExpand all lines: docs/usage/Connection.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,12 @@
1
1
## U2 Connection Settings
2
2
3
-
The Rocket MV BASIC extension can also connect to a U2 server. Regardless of whether you are connected to a server or not, all editor functions will work as expected. But when connected to a U2 server, some functions will have advanced capabilities.
3
+
The Rocket MV BASIC extension can also connect to a U2 server. Regardless of whether you are connected to a server or not, all editor functions will work as expected. But when connected to a U2 server, some new features will be enabled, and some features will be enhanced:
4
4
5
-
**Note**: you cannot edit program files on the U2 server even if you are connected to it. You can only edit files on your local machine.
A high-performance debugging feature has been introduced in the 2.2.0 release (and in UniVerse 11.4.1). However, to use this feature, you will need to upgrade UniVerse to version 11.4.1 or higher. If you decide not to upgrade, you can continue using the original debugging feature available on previous versions of the U2 server.
4
+
5
+
Below is a detailed breakdown of the information for each release. You can find instructions for configuring the debugging binaries in UniVerse [here](./ConfigDap.md).
6
+
7
+
### 2.2.0
8
+
9
+
- This high-performance debugging feature is supported only on UniVerse version 11.4.1 for both Windows and Linux platforms.
10
+
- If you are using UniVerse 11.4.1, there is no need to manually download and configure these binaries. They are already included in this version.
11
+
- However, please note that this feature and the associated binaries are not supported on any versions previous to UniVerse 11.4.1.
Copy file name to clipboardExpand all lines: docs/usage/Debugging.md
+15-11Lines changed: 15 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,15 +16,13 @@ Versions: 8.2.4
16
16
17
17
Platforms: Windows, Linux, AIX
18
18
19
-
Please refer [Known issues](./KnownIssues.md) list to find out existing issues in debugging feature.
19
+
### A high performance debugging feature
20
20
21
-
### Setup Environment
22
-
23
-
In the 1.6.0 release, additional binaries should be installed on UniVerse to support the debugging features. This is no longer necessary for the 1.7.0 release.
21
+
Since the 2.2.0 release, a high-performance debugging feature is supported on UniVerse 11.4.1. To use this feature, you must upgrade to UniVerse 11.4.1 or higher version. Please see [Debugging Binaries Releases](./DAPRelease.md) for more details.
24
22
25
23
## Start Debugging
26
24
27
-
**Note**: You should not debug BASIC subroutines direcly, because this not allowed in UniVerse and UniData.
25
+
**Note**: You should not debug BASIC subroutines directly, because this not allowed in UniVerse and UniData.
28
26
29
27
### Connecting to a U2 server account folder
30
28
@@ -38,7 +36,7 @@ There are 2 methods to debug a BASIC program file: debugging without a launch fi
38
36
39
37
Before debugging, open the BASIC program first.
40
38
41
-
**Note**: debugging a BASIC subroutine directly is not allowed
39
+
**Note**: debugging a BASIC subroutine directly is not allowed.
42
40
43
41
### Debugging without a launch file
44
42
@@ -87,9 +85,9 @@ Then a default debugging configuration file launch.json will be generated in dir
87
85
- "name": this is the name of the launch task. You can change the name to other values.
88
86
- "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.
89
87
- "stopOnEntry": used to control whether the program will be stopped at the first runnable line when start debugging. Currently only true is supported.
90
-
- "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.
91
-
- "depenedncies": put other BASIC program fileshere if they need to be compiled before debugging.
92
-
- "arguments": put additional debugging arguments 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.
88
+
- "preLaunchTask": 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.
89
+
- "dependencies": put other BASIC program files' absolute paths here if they need to be compiled before debugging. For example, "C:\U2\UV\XDEMO\TEST".
90
+
- "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.
93
91
94
92
From the **Run and Debug** view, set the launch option to **Launch Program**. Then press the F5 button to start debugging.
95
93
@@ -115,6 +113,8 @@ You can find all break points in **BREAKPOINTS** panel of the **Run and Debug**
115
113
116
114
The program will stop when the process encounters a break point.
117
115
116
+
**Note**: Condition breakpoints are not supported.
117
+
118
118
### Continue
119
119
120
120
When the process encounters a break point, the program will stop running. You can press the F5 key or click the Continue button from the debug panel to continue running the program.
@@ -139,7 +139,7 @@ These two operations are still not stable. They partially work if breakpoints ar
139
139
140
140
## Restart debug
141
141
142
-
This operation is currently NOT supported.
142
+
Click **restart** button to restart debugging process.
143
143
144
144
### Stop debugging
145
145
@@ -149,7 +149,9 @@ Click the **Stop** button to stop the debugging process.
149
149
150
150
### View variables
151
151
152
-
When debugging starts, you can view all variables in the **Run and Debug** view.
152
+
When debugging starts, you can view all variables in the **Run and Debug** view.
153
+
154
+
You can also change a variable's value by double-clicking it in the **Run and Debug** view (this only works on UniVerse 11.4.1).
153
155
154
156

155
157
@@ -163,6 +165,8 @@ Click the plus (+) button from the **WATCH** panel and enter the variable name t
163
165
164
166

165
167
168
+
**Note**: Only variables are supported. Expressions are not supported.
169
+
166
170
### Handle input operation
167
171
168
172
You can switch to the VS Code terminal to handle an INPUT statement during BASIC program running.
Copy file name to clipboardExpand all lines: docs/usage/FAQ.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,3 +45,11 @@ The item in the example image above specifies that the Rocket MV BASIC extension
45
45
3. Manually remove the MV BASIC extension directory under user profile. For example, you may find MV BASIC extension version 1.6.0 in "C:\Users\user_name\.vscode\extensions\rocketsoftware.rocket-mvbasic-1.6.0".
46
46
47
47
4. Restart VS Code and install the latest extension.
48
+
49
+
**Q: Why isn’t the debugging functionality working? It was working well before.**
50
+
51
+
**A:** This may be a result of the VS Code upgrade. In VS Code 1.79.x, the debugging functionality has some updates which impact our extension. If you encounter debugging issues, please try to downgrade VS Code to [version 1.78.2](https://code.visualstudio.com/updates/v1_78) (on which the debugging functionality should work well). Please refer [VS Code Compatibility](./Compatibility.md) for more details.
52
+
53
+
**Q: How can I exclude specific files from the explorer view?**
54
+
**A:** You can update the vscode settings file “.vscode/settings.json” to exclude files. For more details, please refer VS Code official online documentation.
0 commit comments