Skip to content

Commit 7bf8420

Browse files
authored
Merge pull request #77 from eric-simpson/debugserviceoverview
debug service overview
2 parents 0dc9dfb + 2c77171 commit 7bf8420

File tree

5 files changed

+295
-99
lines changed

5 files changed

+295
-99
lines changed

.astro/astro/content.d.ts

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -250,9 +250,16 @@ declare module 'astro:content' {
250250
collection: "docs";
251251
data: InferEntrySchema<"docs">
252252
} & { render(): Render[".mdx"] };
253-
"developing/debug/index.mdx": {
254-
id: "developing/debug/index.mdx";
255-
slug: "developing/debug";
253+
"developing/debug/configure.mdx": {
254+
id: "developing/debug/configure.mdx";
255+
slug: "developing/debug/configure";
256+
body: string;
257+
collection: "docs";
258+
data: InferEntrySchema<"docs">
259+
} & { render(): Render[".mdx"] };
260+
"developing/debug/overview.mdx": {
261+
id: "developing/debug/overview.mdx";
262+
slug: "developing/debug/overview";
256263
body: string;
257264
collection: "docs";
258265
data: InferEntrySchema<"docs">
@@ -596,5 +603,5 @@ declare module 'astro:content' {
596603

597604
type AnyEntryMap = ContentEntryMap & DataEntryMap;
598605

599-
export type ContentConfig = typeof import("./../../src/content/config.js");
606+
export type ContentConfig = typeof import("../../src/content/config.js");
600607
}

astro.config.mjs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,17 @@ export default defineConfig({
100100
},
101101
{
102102
label: 'Debugging',
103-
link: 'developing/debug/',
103+
collapsed: true,
104+
items: [
105+
{
106+
label: 'Overview',
107+
link: 'developing/debug/overview',
108+
},
109+
{
110+
label: 'Configuring',
111+
link: 'developing/debug/configure',
112+
}
113+
]
104114
},
105115
{
106116
label: 'ILEDocs',

src/content/docs/developing/debug/index.mdx renamed to src/content/docs/developing/debug/configure.mdx

Lines changed: 1 addition & 94 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,8 @@
11
---
2-
title: Guide
2+
title: Configuring the debugger
33
---
44
import { Aside, CardGrid, Card, Icon, Tabs, TabItem } from '@astrojs/starlight/components';
55

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-
![](./debug1.png)
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-
![](./debug2.png)
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-
![](./debug3.png)
53-
54-
</Card></CardGrid>
55-
56-
# Configuring the debugger
57-
586
## General requirements
597

608
* PTFs (see below)
@@ -193,44 +141,3 @@ When there are newer Debug service or Navigator/HTTP Group PTFs, the following s
193141
- If HTTP Group PTF does not show as applied, IPL might be required.
194142
2. Regenerate debug service trust store (as described above)
195143

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-
![](./error_2.png)
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-
![](./error_1.png)
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.
25.6 KB
Loading

0 commit comments

Comments
 (0)