Skip to content

Commit

Permalink
Merged in ahcorde/ign-gazebo/ahcorde/docs_debugging (pull request #504)
Browse files Browse the repository at this point in the history
Improved visualization debugging docs

Approved-by: Louise Poubel <[email protected]>
  • Loading branch information
chapulina committed Jan 8, 2020
2 parents cf29ed5 + c31bafc commit 03af709
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions tutorials/debugging.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,38 +21,28 @@ following two sections for instructions concerning each case.

2. Launch `gdb`

```
gdb ruby
```
`gdb ruby`

3. Run the Gazebo server with the desired arguments. Make sure to use the
`-s` argument. The following example runs the `shapes.sdf` world.

```
(gdb) r /usr/bin/ign gazebo -s shapes.sdf
```
`(gdb) r /usr/bin/ign gazebo -s shapes.sdf`

4. Use GDB as normal

### Debugging the GUI

1. Launch `gdb`

```
gdb ruby
```
`gdb ruby`

2. Run the Gazebo GUI with the desired arguments. Make sure to use the
`-g` argument.

```
(gdb) r /usr/bin/ign gazebo -g
```
`(gdb) r /usr/bin/ign gazebo -g`

3. In another terminal run the Gazebo server.

```
ign gazebo -s -v 4 -r shapes.sdf
```
`ign gazebo -s -v 4 -r shapes.sdf`

4. Use GDB as normal.

0 comments on commit 03af709

Please sign in to comment.