-
Notifications
You must be signed in to change notification settings - Fork 7.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debug Arthas In IDEA #222
Comments
The second part, debug arthas code running in the target JVM, this is the part that developers care about.
|
Nice , :-) |
@hengyunabc This is pretty readable now. Thanks for the help. But still there is an issue about the first part debugging Arthas core.
Indeed it will stop at the
I can NOT still debug the command implementation in arthas core as hoped. Like @ralf0131 Please help me out if anything I missed out. |
I think I got the point now as for #222 (comment) the second part is actually used to debug the I will update the https://github.com/alibaba/arthas/blob/master/CONTRIBUTING.md to make it easier for other contributors. @hengyunabc Sounds okay? |
IDEA remete debug -> IDEA remote debug |
@shentuUrey Thanks, fixed. |
@Hearen In the second part,i encounter a problem that can not debug the arthas.core commands.Can u tell me how did u solve it?just like 'help' ,i don't debug in HelpCommand. |
Debug arthas-boot.jar
You can also start it with remote debugging arguments: |
thank you @hengyunabc |
Thank you! |
the way like this (Hearen#20) is ok. |
Tips:
as-package.sh
before start debugging, it will install the newest version.Commands
, please check the second part.The first part, debug Arthas how to attach to target JVM.
Debug
com.taobao.arthas.core.Arthas
Start
com.taobao.arthas.core.Arthas
Actually
as.sh
start the java process:The main class of
arthas-core.jar
iscom.taobao.arthas.core.Arthas
.IDEA remote debug
Edit Configurations
Add new remote configuration
Add breakpoint at
com.taobao.arthas.core.Arthas#main
, then start debuggingThe text was updated successfully, but these errors were encountered: