DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
View Events Video Library
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Integrating PostgreSQL Databases with ANF: Join this workshop to learn how to create a PostgreSQL server using Instaclustr’s managed service

Mobile Database Essentials: Assess data needs, storage requirements, and more when leveraging databases for cloud and edge applications.

Monitoring and Observability for LLMs: Datadog and Google Cloud discuss how to achieve optimal AI model performance.

Automated Testing: The latest on architecture, TDD, and the benefits of AI and low-code tools.

Related

  • The Enterprise Browser: A Security-Hardened Productivity Platform for the Future of Remote Work
  • Performance Comparison — Thread Pool vs. Virtual Threads (Project Loom) In Spring Boot Applications
  • Building a Unified API Using GraphQL Joins
  • How to Effectively Manage a Remote Software Development Team

Trending

  • Exploring Edge Computing: Delving Into Amazon and Facebook Use Cases
  • How To Deploy Helidon Application to Kubernetes With Kubernetes Maven Plugin
  • A Better Web3 Experience: Account Abstraction From Flow (Part 2)
  • Building AI Applications With Java and Gradle
  1. DZone
  2. Coding
  3. Languages
  4. Running Apache Tomcat as a Windows Service for Remote Debugging [Snippet]

Running Apache Tomcat as a Windows Service for Remote Debugging [Snippet]

In this quick tutorial, we go over using this popular open source solution and to configure it to do some remote debugging.

Sameera Nelson user avatar by
Sameera Nelson
·
Updated Aug. 21, 18 · Code Snippet
Like (1)
Save
Tweet
Share
16.24K Views

Join the DZone community and get the full member experience.

Join For Free

Download Apache Tomcat

  • Go directly to the Apache Tomcat Site, select the version you prefer for download. 
  • However, it is always advised to use the latest version unless you have a constraint or a specific reason.
  • Select the 32-bit/64-bit Windows Service Installer version

  • Execute the install as a regular installation.
  • Go the installed file location -> bin and run Tomcat8w.
    • The Tomcat executable will start a Tomcat instance instead of the service management window.
  • The Tomcat Service Window will appear:

Here you can start stop the Tomcat service and manage the properties. Moreover, you can set the start-up type of the Tomcat server to either Manual or Automatic depending on where the service will start when your system starts up.

Apache Tomcat Configuration for Debugging

  • Go to the Java tab:

  • Add the following under the Java options area:
    • Xdebug
    • Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n

Here you can even set the environment related variable for Java as well.

Restart the Tomcat server and then it will be ready for remote debugging through port 8000.

Note: Here it seems the jpda run is not working as expected when it is set under the startup tab.

Apache Tomcat remote

Published at DZone with permission of Sameera Nelson. See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • The Enterprise Browser: A Security-Hardened Productivity Platform for the Future of Remote Work
  • Performance Comparison — Thread Pool vs. Virtual Threads (Project Loom) In Spring Boot Applications
  • Building a Unified API Using GraphQL Joins
  • How to Effectively Manage a Remote Software Development Team

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends: