I am using maven project in eclipse mars . My Project is not building in the eclipse so i am compiling my project through dos mode. I not being able to debug the code.so somebody please help me to solve issue
You can debug a tomcat server even if you don't run it inside Eclipse, using remote debug.
Please take a look at Remote debugging Tomcat with Eclipse or this blog for Intellij / this one for Eclipse
The idea is to start your tomcat server in debug mode then connecting your debugger to the "remote" (even if on your local PC) JVM (The JVM of the server).
Related
I want to create a "Run/Remote" Configuration IntellIj to connect remote wildfly server running in Ubuntu the code is in Intellij in windows,want to debug,please let me know
I have created a Remote Gradle task in Intellij,and imported and builded the WAR file project in Linux,then i started wildfky server in linux & i run the gradle task in Intellij,although when i click the debug gradle task all the threads are instantiated & debug is suddenly stopping in Intellij without any breakpoint hit in Intellij IDEenter image description here
can you please describe me how to setup a development environment with intellij IDEA for restcomm-smsc to debug run compile build and doing breakpoints etc.
i am using ubuntu 14.04.
i could run the smsc gateway from the binary package and do the simulator tests but when it comes to do some coding and debugging and building stuff, i cannot creat e the correct development environment for restcomm-smsc source code.
i really appreciate if you can guide me simply how to do it?
Thanks a lot
BR
Gokhan
Do you want to debug application deployed on JBoss? If so you need to simply add/uncomment JAVA_OPTS="$JAVA_OPTS -agentlib:jdwp=transport=dt_socket,address=$DEBUG_PORT,server=y,suspend=n" in run.sh/standalone.sh.
In intellij Run -> Edit Configurations -> Remote and provide jboss IP and port from JAVA_OPTS.
I deploy my application using Maven on Liferay 7 (on Tomcat 8). But I need to debug it. How to configure my debug? Because, when I start maven with debug mode, it builds and stops. I have no ideas how to deal with it
Maven with debug mode is only targeted to debug maven build processes. If you want to debug your portlet you should follow the next steps:
Run Menu Entry > Edit Configurations > Add New Remote Configuration > Configure your host and debug port
You have to check too that JPDA port is enabled your Tomcat (you can enable it in your startup.sh/startup.bat script adding jpda in the final line)
exec "$PRGDIR"/"$EXECUTABLE" jpda start "$#"
Quick generic answer (someone with actual IntelliJ experience can probably give more details):
You start tomcat, that has Liferay deployed. Follow the advice you have for "how to debug tomcat applications". The caveat is that you might need to point IntelliJ to the source files for some (all) of the modules in Liferay - which is a huge task (being composed out of 500 modules. For eclipse I'm aware of a fix, for IntelliJ I'm not aware. I'm pretty sure such a beast exists though.
It will be easier (e.g. quick) if you only need your own modules' source.
I am running a sample "hello world" spring maven project from my machine and debugger port is allowing to run or debug the class also browser gives blank screen
To debug a maven project:
start a maven project in debug mode using 'mvnDebug' command instead of 'mvn'.
For your case should be:
mvnDebug jetty:run
It should open a debug port of 8000 by default on your machine.
tell your IDE to remotely connect to the running JVM of your server like you did in the picture (make sure you got the correct port).
The connection refused happens because there is no actual running JVM listening on 8081, as described in your picture.
You mentioned that you get a blank screen in the browser. Maybe you also have a misconfiguration in your pom file. The myspringlearning plugin definition doesn't seem right. You should just make sure you:
have a maven webapp project in your pom.xml (packaging should be war)
the jetty plugin should automatically pick it by default, on port 8080, just 'mvn jetty:run' in your project root
I have been trying to find some documention on whether it's possible to run ServiceMix with IntelliJ for running/debugging purposes?
Does anyone know how to do this/point me to some kind of guide?
Thanks.
I'm debugging servicemix app with remtoe debugging.
Run server with "debug" parameter ($SERVICEMIX_HOME/bin/servicemix debug) and connect to it with Remote Run/Debug configuration in Idea.
Servicemix starts debug on default 5005 port so simply change the SM server host name in Idea configuration.