Arthas for VSCode
VSCode extension for quickly copying Arthas commands.
中文文档
Installation
There are two installation methods:
Install from VSCode Marketplace
- Visit the VSCode Marketplace
- Or search directly for
JustLookAtNow.arthas-for-vscode in VSCode extensions
Manual Installation
- Download the latest .vsix file from the Release page
- Install it in VSCode by selecting "Install from VSIX"
Features
In Java files, when right-clicking, you can access the "Copy Arthas command" menu with the following options:
- watch - Copy Arthas watch command for the current method
- jad - Copy Arthas jad command to decompile the current class
Usage
Watch Command
- Open a Java file
- You can use the watch command in three ways:
- Select a method name, then right-click and choose "Copy Arthas command" > "watch"
- Place the cursor on the method declaration line, then right-click and choose "Copy Arthas command" > "watch"
- Place the cursor anywhere within the method body, then right-click and choose "Copy Arthas command" > "watch"
- The command will be copied to your clipboard in the format:
watch fully.qualified.ClassName methodName '{params,returnObj,throwExp}' -n 5 -x 3
Jad Command
- Open a Java file
- Right-click anywhere in the file and choose "Copy Arthas command" > "jad"
- The command will be copied to your clipboard in the format:
jad fully.qualified.ClassName
Requirements
Development
# Install dependencies
npm install
# Compile
npm run compile
# Package
npm run vscode:prepublish
Publishing
# Install vsce
npm install -g vsce
# Package
vsce package
# Publish
vsce publish
| |