GDB-UI is a user-friendly interface built for the GNU Debugger (GDB), providing a modern web-based UI for debugging your applications. It allows developers to monitor program execution, inspect variables, set breakpoints, and more, all through an intuitive web application.
GitHub Repository: c2siorg/GDB-UI
GDB-UI simplifies the debugging process by integrating the powerful features of GDB with a sleek and easy-to-use web interface. This project is particularly useful for developers working with languages like C, C++, and Ada. The interface offers a more accessible and visual approach to debugging, making it easier to identify and fix issues in your code.
The quickest way to get started with GDB-UI is by using Docker. A docker-compose.yml
file is provided to handle the entire setup.
-
Ensure Docker and Docker Compose are installed on your machine.
-
Run the following command in your terminal:
docker-compose up
This command will build and start both the frontend and backend services, making the application available at http://localhost:3000 (or your specified port).
If you prefer a manual setup or are unable to use Docker, follow these steps:
- Node.js: Version 18
- Python: Version 3.10
-
Navigate to the
webapp
directory:cd webapp
-
Install the necessary dependencies:
npm install
-
Start the development server:
npm run dev
-
Navigate to the
gdbui_server
directory:cd gdbui_server
-
Install the required Python packages:
pip install -r requirements.txt
-
Run the backend server:
python main.py
To run the frontend tests, follow these steps:
-
Navigate to the
webapp
directory:cd webapp
-
Run the tests using Vite:
npm run test
To run the backend tests, use the following procedure:
-
Ensure your Python environment is set up as described in the manual setup.
-
Navigate to the
gdbui_server
directory:cd gdbui_server
-
Run the tests using the
unittest
module:python -m unittest discover -s tests
We welcome contributions from the community! To get started:
-
Fork the repository at c2siorg/GDB-UI.
-
Clone your fork:
git clone https://github.com/your-username/GDB-UI.git
-
Create a new branch for your feature or bugfix:
git checkout -b feature-name
-
Make your changes and commit them:
git commit -m "Description of your changes"
-
Push your branch to your fork:
git push origin feature-name
-
Open a pull request on the main repository.
Please ensure your code adheres to our coding standards and is thoroughly tested before submitting your pull request.