请参考环境准备,完成相关环境变量的配置。
msDebug工具支持以下两种启动方式:
export TERMINFO=xx //xx信息可通过infocmp -D命令查询,可以选择符合当前终端配置的路径做为TERMINFO值
$ msdebug application
(msdebug) target create "application"
Current executable set to '${INSTALL_DIR}/projects/application' (aarch64).
(msdebug)
msdebug application parameter1 parameter2 ...
1 2 3 4 5 6 7 8 | $ msdebug python3 test_ops_custom.py msdebug(MindStudio Debugger) is part of MindStudio Operator-dev Tools. The tool provides developers with a mechanism for debugging Ascend kernels running on actual hardware. This enables developers to debug Ascend kernels without being affected by potential changes brought by simulation and emulation environments. (msdebug) target create "application" Current executable set to ''${INSTALL_DIR}/projects/application' (aarch64). (msdebug) settings set -- target.run-args "test_ops_custom.py" (msdebug) |
(msdebug) q [localhost add_ascendc_sample]$
该调试通道无法单独关闭,若要关闭调试通道,需要通过覆盖安装方式,具体请参见对应的NPU驱动和固件安装文档。