-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lint docs/debugging-jpackage-installations.md
- Loading branch information
Showing
1 changed file
with
7 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,17 @@ | ||
# Debugging jpackage installations | ||
|
||
Sometimes issuses with modularity only arise in the installed version and do not occur if you run from source. | ||
Using remote debugging, it's still possible to hook your IDE into the running JabRef application to enable debugging. | ||
|
||
## Debugging on Windows | ||
1. Open build.gradle, under jlink options remove`'--strip-debug',` | ||
|
||
1. Open `build.gradle`, under jlink options remove`'--strip-debug',` | ||
2. Build or let the CI build a new version | ||
3. Download the modified version or portable version go to `\JabRef\runtime\bin\Jabref.bat` | ||
4. Modify the bat file, replace the last line with | ||
``` | ||
```cmd | ||
pushd %DIR% & %JAVA_EXEC% -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=8000,suspend=n -p "%~dp0/../app" -m org.jabref/org.jabref.JabRefLauncher %* & popd | ||
``` | ||
5. Open your IDE and add a Remote Debugging Configuration for localhost:8000 | ||
5. Open your IDE and add a Remote Debugging Configuration for `localhost:8000 ` | ||
6. Start JabRef from the bat file | ||
7. Connect with your IDE using remote debugging | ||
7. Connect with your IDE using remote debugging |