Skip to content

Commit f2a39ad

Browse files
committed
Add federated execution debugging argument example.
1 parent 5c1c9d9 commit f2a39ad

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 such as below.
68+
```
69+
{
70+
"cmake.debugConfig": {
71+
"args": [
72+
"-i",
73+
"federation_id"
74+
]
75+
}
76+
}
77+
```

0 commit comments

Comments
 (0)