Skip to content

Commit

Permalink
Merge pull request #266 from Jakio815/fed-gen-debug
Browse files Browse the repository at this point in the history
Add federated execution debugging argument example.
  • Loading branch information
lhstrh authored Jul 2, 2024
2 parents f8fbb29 + db26217 commit a4ed069
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,17 @@ If, for example, your federated program is in `src/Foo.lf` and it has a top-leve
then you will find the generated code for the `bar` federate in `fed-gen/Foo/src-gen/federate__bar`.
You can then run and debug that individual federate from within VS Code, but you will also have
to manually run the RTI and the other federates in order for the code to start executing.

### Adding Arguments

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.
```
{
"cmake.debugConfig": {
"args": [
"-i",
"federation_id"
]
}
}
```

0 comments on commit a4ed069

Please sign in to comment.