Coder Social home page Coder Social logo

lepickaklaudia / revdebug-tutorial-spring Goto Github PK

View Code? Open in Web Editor NEW

This project forked from revdebug/revdebug-tutorial-spring

0.0 0.0 0.0 681 KB

RevDeBug recording of a Java Spring Boot application demo

JavaScript 0.19% Java 45.55% HTML 27.43% Dockerfile 3.30% Less 23.53%

revdebug-tutorial-spring's Introduction

RevDeBug recording of a Java Spring Boot application demo

The following application is an example spring boot application showing the tracing and code execution recording of RevDeBug. A prerequisite for this follow along tutorial is a working RevDeBug Server instance running, please refer to user manual at: https://revdebug.gitbook.io/revdebug/installing-revdebug-server#setting-up-revdebug-server-instance

Clone the project (Linux/MacOS X machine with Docker installed recommended)

git clone https://github.com/RevDeBug/revdebug-tutorial-spring
cd revdebug-tutorial-spring

Build the application using the included Dockerfile

docker build --build-arg REVDEBUG_RECORD_SERVER_ADDRESS_ARG=[revdebug_server_address] -t rdb_java_demo .

Where [revdebug_server_address] is your RevDeBug server address (IP address or just the hostname). If you are using TLS on your RevDeBug server, add the --build-arg REVDEBUG_TLS=true variable.

Run the built Docker image

docker run -d -p 8080:8080 --name rdb_java_demo rdb_java_demo:latest

Use the application to cause its error

Afterwards the application will be accessible through a web browser at: http://localhost:8080/

Navigate to Invoices web page.

Demo application web page

Select the invoice that came from: Exceptional LLC, access the details of the invoice and press the "Reconcile" link.

Demo application web page

It will result with an error - you may see a "blank" or an error 500 web page at this time.

Use RevDeBug to access code execution recording

Find the errorneous trace

Next, you may switch to a RevDeBug server web interface and navigate to the “Trace” tab, where you may filter the traces to show only errors and limit to application “InvoiceJava”.

Demo application web page

There you’ll find the trace for the caused error and you can access the recording of code execution. Accessing the recording for the first time will ask to configure the source code repository address.

Connect code repository (one time action)

Follow the “connect to repository” option and fill the “Repository address” to github repository location of https://github.com/RevDeBug/revdebug-tutorial-spring and press “Save”.

Demo application web page

Access the code execution for the error

Closing the inner window and reopening the code recording will present the recording on the source code and allow you to move around the recording timeline using the arrow buttons at top left.

Demo application web page

revdebug-tutorial-spring's People

Contributors

damian2394 avatar bekz7 avatar kuffelhubert avatar adamkruszewski avatar mlasek avatar lajzz avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.