-
Notifications
You must be signed in to change notification settings - Fork 54
Debugging
This page provides example how to debug REANA cluster component internally, e.g. see the incoming API requests coming through micro services, thanks to wdb.
1. The REANA cluster should be created in the debugging mode, which allows for live code mounting and live code reloads:
$ reana-dev cluster-create --mode=debug
2. The REANA cluster components that you would like to debug should be build also in debugging mode. It could be one component only, or the full cluster:
$ reana-dev docker-build -b DEBUG=1 -c reana-server
$ reana-dev kind-load-docker-image -c reana-server
3. Deploy the cluster:
$ reana-dev cluster-deploy --admin-email [email protected] --admin-password mysecretpassword --mode debug
4. Add a breakpoint (using wdb) for example in the list workflows endpoint:
"""
+ import wdb; wdb.set_trace()
try:
5. Call reana-client list
from the command line:
$ reana-client list
6. Open the debugging session in your web browser:
$ firefox http://localhost:31984
REANA reproducible analysis platform
blog.reana.io | docs.reana.io | forum.reana.io | www.reana.io |
@gitter | @mattermost | @twitter
Introduction
Getting started
- Setting up your system
- Cloning sources
- Using production-like development mode
- Using live-code-reload and debug mode
Issue lifecycle
Understanding code base
Technology tips and tricks
- Tips for Docker
- Tips for Git
- Tips for GitLab
- Tips for Keycloak
- Tips for Kind
- Tips for Kubernetes
- Tips for OpenAPI
- Tips for PostgreSQL
- Tips for Python
- Tips for RabbitMQ
- Tips for SQLAlchemy