Java development with Codenvy: Console app debug

Purpose

Instructions on how to debug a Java Console application using Codenvy

Prerequisites

"Hello World! Execute" or maven Console project created in Codenvy environment

Contents

Added mainClass to pom.xml file

  1. Double-click pom.xml from Projects Explorer WS000013.JPG

  2. Add maven-jar-plugin settings WS000014.JPG

debug command creation

  1. Click "+" on DEBUG from Commands Explorer WS000015.JPG

  2. Select Java WS000016.JPG

  3. Enter the Name and Command Line and click the "SAVE" button. WS000017.JPG

debug settings

  1. Select Edit Debug Configurations from the Run menu WS000018.JPG

  2. Click the "+" button on the Java side WS000019.JPG

  3. Enter the Name and click the "Save" button WS000020.JPG

debug run

  1. Click the line number to add a point WS000021.JPG

  2. It's hard to see that it was added, but you can also check it from the debug screen. WS000022.JPG

  3. Execute the added debug command from the debug button WS000023.JPG

  4. When [Listening for transport dt_socket at address: 8000] is displayed, execute debug. WS000024.JPG WS000025.JPG WS000026.JPG

  5. Processing stops at a breakpoint WS000028.JPG

  6. debug tool WS000027.JPG

  7. Debugging (Change value from Variables) Select a value and click the edit button WS000029.JPG

  8. Correct the value WS000030.JPG

  9. Confirmation of correction details WS000031.JPG

  10. Confirmation of execution result WS000032.JPG

Reference content

debug command: https://codenvy.com/docs/user-guide/debug/index.html

Recommended Posts

Java development with Codenvy: Console app debug
Java development with Codenvy: Hello World! Run
Prepare Java development environment with Atom
Html5 development with Java using TeaVM
Prepare Java development environment with VS Code
Game development with two people using java 2
Game development with two people using java 1
Game development with two people using java 3
24 hours struggling with Android development, Java Optional
Java development training
[3rd] Mahjong app development from 0 with two beginners
[1st] Mahjong app development from 0 with two beginners
Deploy Java web app to Azure with maven
GAE / Java8 trial (Part 5: "Console for local development")
Java development environment
Java SE Development Kit 8u161 --setup with alternatives
[2nd] Mahjong app development from 0 with two beginners
Build a Java development environment with VS Code
Build Java development environment with VS Code on Mac
Experienced Java users get started with Android application development
Get Azure App Service for Java Configuration with System.getEnv ()
Build Java development environment with WSL2 Docker VS Code
How to build Java development environment with VS Code
[Environment construction] Build a Java development environment with VS Code!
Face recognition app made with Amazon Rekognition and Java
Build Java program development environment with Visual Studio Code
Debug the VSCode + Docker + PHP development environment with XDebug.
[Java] Development with multiple files using package and import
Java + Spring development environment construction with VirtualBox + Ubuntu (Xfce4)
Hello World (console app) with Apache Camel + Spring Boot 2
Install java with Homebrew
Rock-paper-scissors app in Java
Java development environment memo
Change seats with java
Comfortable download with JAVA
Java app performance tuning
Switch java with direnv
Plugin development with ImageJ
Download Java with Ansible
Java development link summary
java development environment construction
[Rails] Development with MySQL
Let's scrape with Java! !!
[Development] Java framework comparison
Build Java with Wercker
Endian conversion with JAVA
I tried to create a java8 development environment with Chocolatey
Java web application development environment construction with VS Code (struts2)
Domain Driven Development with Java and Spring Boot ~ Layers and Modules ~
Build WebAPP development environment with Java + Spring with Visual Studio Code
[Java development environment construction] Install OpenJDK 11 (Java 11) on macOS with Homebrew.