| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [View Raw Code] [Original HTTPS Page] |
This debugger is written in TypeScript, and it depends on a Java Debug Server written in Java.
mkdir javaDebugger
cd javaDebuggergit clone https://github.com/Microsoft/vscode-java-debug.gitgit clone https://github.com/Microsoft/java-debug.gitNow the folder structure looks like following:
javaDebugger/
├── java-debug
└── vscode-java-debugInstall all the dependencies using npm (supposed to be installed together with Node.JS).
cd vscode-java-debug
npm installFor convenience, there is a build script buildJdtlsExt.js defined in scripts/build. It builds the Java Debug Server and then copies the .jar file into folder vscode-java-debug/server.
npm run build-serverNOTE: If you didn't follow the steps to check out vscode-java-debug and java-debug in the same folder, please specify a correct server_dir in your buildJdtlsExt.js.
Open folder vscode-java-debug in VS Code, or simply execute following commands if you have code in your system PATH.
cd vscode-java-debug
code .Press F5 to start debugging the extension, it will create a new window as the extension host.
When you are debugging the extension, it is able to debug the Java process with local port 1044. To remote debug the server, you can attach a Java debugger to localhost:1044 using an IDE (Eclipse, IntelliJ IDEA, etc) or the Java Debugger for VS Code itself.
Since we have checked in a valid launch.json to the repository, it would be easy to use the Java Debugger for VS Code itself to debug the server.
Before we can accept a pull request from you, you'll need to sign a Contributor License Agreement (CLA). It is an automated process and you only need to do it once. To enable us to quickly review and accept your pull requests, always create one pull request per issue and link the issue in the pull request.
| Back | FazBrowse Home | New Git URL |