Is it possible to debug a python command line tools? #493
Answered
by
inducer
BrightXiaoHan
asked this question in
Q&A
-
This is from setuptools import setup
setup(
name="lib_translate",
version="1.0",
author="hanbing",
author_email="[email protected]",
description="Translate SDK for Lan-MT",
# 项目主页
url="http://fanyi.dtranx.com",
# 你要安装的包,通过 setuptools.find_packages 找到当前目录下有哪些包
packages=["libtranslate", "libtranslate.translate",
"libtranslate.third_party", "libtranslate.bin"],
install_requires=[item.strip()
for item in open("requirements.txt", "r").readlines()],
entry_points={
"console_scripts": [
"libtrans_interact=libtranslate.bin.interact:main",
"libtrans_genbt=libtranslate.bin.genbt:main",
"libtrans_translate=libtranslate.bin.translate:main",
"libtrans_relase=lib_translate.bin.release:main"
],
}
)
How can I debug the cli command use pudb3 libtrans_genbt |
Beta Was this translation helpful? Give feedback.
Answered by
inducer
Dec 3, 2021
Replies: 1 comment 1 reply
-
Did you try
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
BrightXiaoHan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Did you try