Skip to content

Commit 081b2f4

Browse files
authored
Bump to 2.9.0rc2 and add config for test --debug. (#2)
1 parent b603e09 commit 081b2f4

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,13 @@ Try these out in this repo!
7070
./pants check src/jvm/org/pantsbuild/example/lib/ExampleLib.java # Compile a file and its deps.
7171
```
7272

73-
## Run tests
73+
## Run and debug tests
7474

7575
```
7676
./pants test :: # Run all tests in the repository.
7777
./pants test tests/jvm/org/pantsbuild/example/lib: # Run all the tests in this directory.
7878
./pants test tests/jvm/org/pantsbuild/example/lib/ExampleLibSpec.scala -- -z hello # Run one test method.
79+
./pants test --debug tests/jvm/org/pantsbuild/example/lib/ExampleLibSpec.scala # Debug one file.
7980
```
8081

8182
## Create a binary file

pants.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Licensed under the Apache License, Version 2.0 (see LICENSE).
33

44
[GLOBAL]
5-
pants_version = "2.9.0rc1"
5+
pants_version = "2.9.0rc2"
66
backend_packages = [
77
# This repository demonstrates a mix of Java and Scala, and so both backends are enabled. But each
88
# backend can be used independently, so there is no need to expose Scala BUILD file
@@ -33,6 +33,12 @@ args = [
3333
# defined at the root of the repository.
3434
plugins_global = ["//:acyclic"]
3535

36+
[jvm]
37+
# Configure remote debugging options that will be used with `test --debug`.
38+
debug_args = [
39+
"-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005",
40+
]
41+
3642
[anonymous-telemetry]
3743
enabled = true
3844
repo_id = "79B3C35A-85A9-41A4-AAA8-04484F41A8F7"

0 commit comments

Comments
 (0)