|
1 | 1 | --- |
2 | | -title: Guide |
| 2 | +title: Configuring the debugger |
3 | 3 | --- |
4 | 4 | import { Aside, CardGrid, Card, Icon, Tabs, TabItem } from '@astrojs/starlight/components'; |
5 | 5 |
|
6 | | -# ILE Debugging |
7 | | - |
8 | | -Debugging ILE programs is now available inside of Visual Studio Code. We've added UI to make sure setting up the Debug Service to be a swift process. |
9 | | - |
10 | | -<Aside type="note">You must have `bash` set as your default shell. [See Bash Shell Required](/docs/tips/bash/) for more info. </Aside> |
11 | | - |
12 | | -# Starting to debug |
13 | | - |
14 | | -<CardGrid> |
15 | | - |
16 | | -<Card> |
17 | | - |
18 | | -After configuring the Debug Service, launching a debug session is a click of a button away. When you have active source open, a new Debug button will appear in the navigation bar. Breakpoints can be set prior to debugging, or during the debugging session. |
19 | | - |
20 | | -</Card><Card> |
21 | | - |
22 | | - |
23 | | - |
24 | | -</Card></CardGrid> |
25 | | - |
26 | | ---- |
27 | | - |
28 | | -<CardGrid> |
29 | | - |
30 | | -<Card> |
31 | | - |
32 | | -Clicking the Debug button will display an input box which will allow the user to customise the command which starts the debug job. This allows the developer to pass in parameters, or call another program to launch the debug session. |
33 | | - |
34 | | -After the debug session has started, every session will break on entry. You can read more about the debugging UI on the [Debug actions section on the Visual Studio Code documentation](https://code.visualstudio.com/docs/editor/debugging#_debug-actions)<Icon name="external" color="cyan" class="icon-inline" />. |
35 | | - |
36 | | -</Card><Card> |
37 | | - |
38 | | - |
39 | | - |
40 | | -</Card></CardGrid> |
41 | | - |
42 | | ---- |
43 | | - |
44 | | -<CardGrid> |
45 | | - |
46 | | -<Card> |
47 | | - |
48 | | -To debug a program from the Object Browser, right-click on the program object and select the **Debug Program** option. Like before this will also display an input box to modify the command which starts the debug job. |
49 | | - |
50 | | -</Card><Card> |
51 | | - |
52 | | - |
53 | | - |
54 | | -</Card></CardGrid> |
55 | | - |
56 | | -# Configuring the debugger |
57 | | - |
58 | 6 | ## General requirements |
59 | 7 |
|
60 | 8 | * PTFs (see below) |
@@ -193,44 +141,3 @@ When there are newer Debug service or Navigator/HTTP Group PTFs, the following s |
193 | 141 | - If HTTP Group PTF does not show as applied, IPL might be required. |
194 | 142 | 2. Regenerate debug service trust store (as described above) |
195 | 143 |
|
196 | | -# Common issues |
197 | | - |
198 | | -## Debug hangs |
199 | | - |
200 | | -There is a [known issue](https://github.com/codefori/vscode-ibmi/issues/1059)<Icon name="github" class="icon-inline" /> that when you start debugging from VS Code, the debugger hangs and doesn't launch. |
201 | | - |
202 | | -The fix is to check if you've got a prior debug job stuck in `MSGW`. You can do this with `WRKACTJOB`, or a similar command like `WRKSBSJOB QBATCH`. |
203 | | - |
204 | | -**Users should no longer face this issue** as we now submit debug jobs to `QSYSWRK` with `QSYSNOMAX`. |
205 | | - |
206 | | -## `STRDBGSVR` requirement |
207 | | - |
208 | | -The Debug Service that is started depends on the traditional Debug Server. |
209 | | - |
210 | | - |
211 | | - |
212 | | -If you receive this message, do as it says. Simply start the Debug Server with `STRDBGSVR` from a greenscreen. |
213 | | - |
214 | | -## IP not in cert list |
215 | | - |
216 | | -**It is always recommended you use a hostname in the connection settings to make use of the debugger**. |
217 | | - |
218 | | - |
219 | | - |
220 | | -*Error that is shown when connecting to the debugger if connecting using an IP address.* |
221 | | - |
222 | | -This error occurs when the hostname used to connect to the debugger (which might be the IP address that was configured in the connection settings) is not the same as the host name created as part of the certificate. |
223 | | - |
224 | | -If you are using a system that doesn't have a host name (for example `YOURSYSTEM`, or `pub400.com`), then an entry should be added to your device's 'hosts' file. This entry should be the same on all devices in your network to ensure that everyone is using the same hostname. |
225 | | - |
226 | | -* Windows: `c:\Windows\System32\Drivers\etc\hosts` |
227 | | -* Mac: `/etc/hosts` |
228 | | - |
229 | | -Your entry might look like this: |
230 | | - |
231 | | -```txt title="hosts" {2} |
232 | | -# IP HOSTNAME |
233 | | -192.168.0.20 MYIBMI |
234 | | -``` |
235 | | - |
236 | | -If you find that you've added your local hostname entry and the error is still occurring, then you may need to delete the existing certificates from `/QIBM/ProdData/IBMiDebugService/bin/certs` on the IFS and generate them again in the Walkthrough. |
0 commit comments