Skip to content

Commit 43c2e01

Browse files
committed
Add generated code debug argument instructions to v0.8.0 and latest.
1 parent 606e363 commit 43c2e01

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

docs/developer/debugging-generated-code.mdx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,17 @@ If, for example, your federated program is in `src/Foo.lf` and it has a top-leve
6161
then you will find the generated code for the `bar` federate in `fed-gen/Foo/src-gen/federate__bar`.
6262
You can then run and debug that individual federate from within VS Code, but you will also have
6363
to manually run the RTI and the other federates in order for the code to start executing.
64+
65+
### Adding Arguments
66+
67+
To add arguments using VS code, you should add a directory `.vscode` right below the opened `src-gen` directory and add a `settings.json` file like the one below. In place of `federation_id`, write the actual federation ID that is being used by the RTI.
68+
```
69+
{
70+
"cmake.debugConfig": {
71+
"args": [
72+
"-i",
73+
"federation_id"
74+
]
75+
}
76+
}
77+
```

versioned_docs/version-0.8.0/developer/debugging-generated-code.mdx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,17 @@ If, for example, your federated program is in `src/Foo.lf` and it has a top-leve
6161
then you will find the generated code for the `bar` federate in `fed-gen/Foo/src-gen/federate__bar`.
6262
You can then run and debug that individual federate from within VS Code, but you will also have
6363
to manually run the RTI and the other federates in order for the code to start executing.
64+
65+
### Adding Arguments
66+
67+
To add arguments using VS code, you should add a directory `.vscode` right below the opened `src-gen` directory and add a `settings.json` file like the one below. In place of `federation_id`, write the actual federation ID that is being used by the RTI.
68+
```
69+
{
70+
"cmake.debugConfig": {
71+
"args": [
72+
"-i",
73+
"federation_id"
74+
]
75+
}
76+
}
77+
```

0 commit comments

Comments
 (0)