aboutsummaryrefslogtreecommitdiffstats
path: root/docs/developer/build-run-debug/running_vpp.rst
blob: 2c9725727daa44336b6585e0430e4cbc25478f16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
.. _running_vpp:

.. toctree::

Running VPP
===========

After building the VPP binaries, you now have several images built.
These images are useful when you need to run VPP without installing the packages.
For instance if you want to run VPP with GDB.

Running Without GDB
_________________________

To run the VPP images that you've built without GDB, run the following commands:

Running the release image:

.. code-block:: console

   # make run-release
   #

Running the debug image:

.. code-block:: console

   # make run
   #

Running With GDB
_________________________

With the following commands you can run VPP and then be dropped into the GDB prompt.

Before running either command, please make sure that the 'gdb' package is installed.
If it's not installed, run the following command first:

.. code-block:: console

   $ sudo apt install gdb

Running the release image:

.. code-block:: console

   # make debug-release
   (gdb)

Running the debug image:

.. code-block:: console

   # make debug
   (gdb)