Hi ibingdian,

Running 'gw runGui' in debug mode actually debugs the JVM that runs Gradle, not 
the JVM running JMeter. The effective way to debug JMeter source code is the 
following commands:

set JAVA_HOME="C:\Program Files\Java\jdk-17"
cd jmeter
gradlew idea
REM or
REM gradlew eclipse

set JVM_OPTS=-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n
cd bin
jmeter.bat

Then you can remote debug at locahost port 8000, and you will find the source 
code is very friendly for IntelliJ or Eclipse to load and debug. By the way, 
the value for 'JVM_OPTS' can be used in any Java command to debug any Java 
application the same way. Change the port number and 'suspend={y|n}' as you see 
fit.

I hope that helps

--Michael

________________________________
From: ibingdian (via GitHub) <g...@apache.org>
Sent: Monday, April 1, 2024 3:34 AM
To: dev@jmeter.apache.org <dev@jmeter.apache.org>
Subject: Re: [I] in building JMeter source meet EXCEPTION_STACK_OVERFLOW 
(Execution failed for task ':src:dist:runGui'.)) [jmeter]


ibingdian commented on issue #6262:
URL: https://github.com/apache/jmeter/issues/6262#issuecomment-2029553743

   https://github.com/apache/jmeter/issues/6262#issuecomment-2029446617

   i primary want to debug Jmeter source with a jmx file, how to dubug in GUI 
mode with a given jmx file?

   in org.apache.jmeter.JMeterTest, i see many runNonGui test case , is there 
any runGui test case ?




--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@jmeter.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to