Skip to content

Commit a4ed069

Browse files
authored
Merge pull request #266 from Jakio815/fed-gen-debug
Add federated execution debugging argument example.
2 parents f8fbb29 + db26217 commit a4ed069

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

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

+14
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)