← 返回命令列表

Linux command

poetry-debug 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Show Poetry and environment information

poetry debug info

Debug dependency resolution

poetry debug resolve

Resolve a specific package

poetry debug resolve [package_name]

说明

poetry debug provides diagnostic information for troubleshooting Poetry issues. The info subcommand displays Poetry version, Python version, system platform, and virtual environment details. The resolve subcommand performs dependency resolution in debug mode, showing the solver's decision process. This is useful for diagnosing version conflicts or understanding why specific package versions were selected.

参数

info
Show Poetry version, Python version, system platform, and virtualenv details.
resolve _package_
Run the dependency resolver in verbose mode. Optionally specify a package name to resolve only that dependency.

FAQ

What is the poetry-debug command used for?

poetry debug provides diagnostic information for troubleshooting Poetry issues. The info subcommand displays Poetry version, Python version, system platform, and virtual environment details. The resolve subcommand performs dependency resolution in debug mode, showing the solver's decision process. This is useful for diagnosing version conflicts or understanding why specific package versions were selected.

How do I run a basic poetry-debug example?

Run `poetry debug info` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does info do in poetry-debug?

Show Poetry version, Python version, system platform, and virtualenv details.