https://pantsbuild.org/ logo
#general
Title
# general
j

jolly-kite-53356

03/10/2023, 1:16 AM
Hi! I’m trying to setup debug adapter with pants. From
Copy code
./pants run --debug-adapter                          
17:15:06.43 [ERROR] 1 Exception encountered:

  NoApplicableTargetsException: No files or targets specified. The `run` goal works with these target types:

  * docker_image
  * pex_binary
  * python_source
  * python_test
it seems like the
pex_binary
is supported, but when I actually run the command with a pex_binary target, I got this error
Copy code
Debugging a `pex_binary` using a debug adapter has not yet been implemented.
b

bitter-ability-32190

03/10/2023, 1:32 AM
On the first invocation you're missing a target. The only targets I know support a debug adapter today are python sources. So
./pants run --debug-adapter path/to/file.py
j

jolly-kite-53356

03/10/2023, 2:47 AM
got u, thanks. I managed to run the debugger with the entry point directly as you said
./pants run --debug-adapter path/to/main.py
. Thanks!
5 Views