How To Install winpdb on Ubuntu 18.04
Introduction
In this tutorial we learn how to install winpdb
on Ubuntu 18.04.
What is winpdb
winpdb is:
Winpdb supports debugging of threads- and curses based applications, namespace modification and embedded debugging. As a remote debugger, it uses (encrypted) network connections to connect to the debuggee (which is running on the same machine, usually).
Winpdb is the graphical, wx-based frontend to rpdb2, which is also included in this package. rpdb2 is text based and able to use screen sessions if there is no x-terminal-emulator available.
Winpdb is up to 20 times faster than pdb.
There are three methods to install winpdb
on Ubuntu 18.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install winpdb Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install winpdb
using apt-get
by running the following command:
sudo apt-get -y install winpdb
Install winpdb Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install winpdb
using apt
by running the following command:
sudo apt -y install winpdb
Install winpdb Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install winpdb
using aptitude
by running the following command:
sudo aptitude -y install winpdb
How To Uninstall winpdb on Ubuntu 18.04
To uninstall only the winpdb
package we can use the following command:
sudo apt-get remove winpdb
Uninstall winpdb And Its Dependencies
To uninstall winpdb
and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove winpdb
Remove winpdb Configurations and Data
To remove winpdb
configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge winpdb
Remove winpdb configuration, data, and all of its dependencies
We can use the following command to remove winpdb
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge winpdb
References
Summary
In this tutorial we learn how to install winpdb
package on Ubuntu 18.04 using different package management tools: apt
, apt-get
and aptitude
.