Hi! I’m trying to setup debug adapter with pants. ...
# general
j
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
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
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!