Git Product home page Git Product logo

java_bytecode_debugger's Introduction

It's a bachelor thesis project to supplement the course Nebenläufige Programmierung in UdS.

Watch the introduction video: https://www.youtube.com/watch?v=q7Q7_ex2KuE

Motivation:
    debuggers in IDE (eg. intellij IDEA or eclipse) have step into/over/return
    JDB (the java debugger) has stepi to step one instruction, but no GUI
    This little project combines the two.

current java version:
    13.0.2
    you can change it in build.gradle

to run:
    java -jar build/libs/debuggerGradle.jar
    you should have a java source file to be debugged, but you don't need to compile it, javac and javap are integrated in the project, you just need to click compile after you open the source file
    The integrated javac outputs a class file, the integrated javap outputs a bytecode file, which is a made-up file type and essentially the content of javap's output in the console. Both output will be in the same folder as source code file.
        javac -g Main.java				//-g							   Generate all debugging info
        javap -c -l -p Main.class		//-p  -private                     Show all classes and members
        								//-c                               Disassemble the code
        								//-l                               Print line number and local variable tables

to debug:
    method 1:
    step 1: bash input:
    java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address="8000" -jar build/libs/debuggerGradle.jar
    step 2: in eclipse > debug configurations, choose:
    remote, socket attach

    method 2:
    step 1: in eclipse > debug configurations choose:
    remote, socket listen
    step 2: bash input:
    java -Xdebug -Xrunjdwp:transport=dt_socket,address=127.0.0.1:8000,suspend=y -jar build/libs/debuggerGradle.jar

java_bytecode_debugger's People

Contributors

fefrei avatar mailein 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.