Skip to content

Commit f5f28c3

Browse files
committed
link to the doc
1 parent 45aacfd commit f5f28c3

File tree

2 files changed

+9
-20
lines changed

2 files changed

+9
-20
lines changed

scripts/common.ts

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -278,23 +278,11 @@ export async function callGenerator(gen: Generator, withDebugger: boolean): Prom
278278
return;
279279
}
280280

281-
console.log(chalk.yellow('Running the generator in debug mode, waiting for debugger to be attached on port 5009'));
282-
283-
/*
284-
example .vscode/launch.json config to attach the debugger
285-
{
286-
"version": "0.2.0",
287-
"configurations": [
288-
{
289-
"type": "java",
290-
"name": "APIC Generator",
291-
"request": "attach",
292-
"hostName": "localhost",
293-
"port": "5009"
294-
}
295-
]
296-
}
297-
*/
281+
console.log(
282+
chalk.yellow(
283+
'Running the generator in debug mode, waiting for debugger to be attached on port 5009\nsee the doc for reference: https://api-clients-automation.netlify.app/docs/CLI/cts-commands#attach-a-debugger-to-the-generator',
284+
),
285+
);
298286

299287
const verbose = isVerbose();
300288
setVerbose(false); // verbose messes up the order of execution

website/docs/CLI/generate-commands.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@ apic generate <language | all> <client... | all>
2424

2525
### Available options
2626

27-
| Option | Command | Description |
28-
| ------- | :------------ | :------------------------------------------------------------ |
29-
| verbose | -v, --verbose | Make the process verbose, display logs from third party tools |
27+
| Option | Command | Description |
28+
|----------|:---------------|:----------------------------------------------------------------------------------|
29+
| verbose | -v, --verbose | Make the process verbose, display logs from third party tools |
30+
| debugger | -d, --debugger | runs the generator in debug mode, it will wait for a Java debugger to be attached |
3031

3132
## Generate
3233

0 commit comments

Comments
 (0)