How to attach debuger to a Community Server Connector / Tomcat #1240
Unanswered
ThierrySudre
asked this question in
Q&A
Replies: 1 comment 2 replies
-
@Eskibear Can you help provide some suggestions here? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
My project is a tomcat webapps application with java servlets on server side and many js scripts on client side. I have migrate recently this project from eclipse to vscode. My project is now a maven project under vscode using Community Server Connector with a Tomcat 9.0.67 server. By using tomcat server pull down menu I can start or debug the server and it works fine. My problem is to add a launch.json configuration to attach the debugger to this server and have a preLaunchTask able to debug this integrated server. I dont know how to create a task in tasks.json to run a vscode internal command like >Servers: Start Server (Tomcat 9.0.67).

As my project is very large I can't build a war file each time I want to debug, so I use the maven war:inplace feature to move the compiled classes to the project WEB-INF/classes folder, so ideally I would like to have two actions when I start to debug (F5), first is to maven war:inplace the classes and then debug tomcat server.
I tried maven Tomcat7 Plugin but this plugin was made to used external Tomcat server not integrated in Community Server Connector.
Beta Was this translation helpful? Give feedback.
All reactions