操作方法

操作方法:在 ArcGIS Pro 中启用公共设施网络包工具的调试模式

Last Published: July 19, 2023

摘要

In ArcGIS Pro, it is possible to enable the debug mode when troubleshooting Utility Network Package Tools errors by setting the logging level to ‘DEBUG’. When running a tool from Utility Network Package Tools, and it fails to execute, a pop-up is generated, with detailed information in the Messages section if the debug mode is enabled. This is helpful in identifying the causes for tool failure.

The following image shows the messages from the pop-up window before setting the logging level to 'DEBUG' when a tool fails to execute.

Image of the example of the messages from a pop-up window of a failed tool before setting the logging level

过程

Follow the instructions below to set the logging level to debug mode when troubleshooting a Utility Network Package Tools error in ArcGIS Pro.

  1. In ArcGIS Pro, click the Analysis tab on the top ribbon. Click the drop-down menu next to Python, and select Python Window.
Image of the selected Python Window
  1. In the Python window, insert the following commands:
import untools
untools.logger.setLevel('DEBUG')
Image of the commands in the Python window in ArcGIS Pro
  1. Press Enter.
  2. In the Geoprocessing pane, run the desired tool from Utility Network Package Tools. If the tool fails, click View Details on the progress bar to view the tool's execution details.

The following image shows the messages from the pop-up window after setting the logging level to 'DEBUG' when the tool fails to execute.

Image of the example of the messages from a pop-up window of a failed tool after setting the logging level

文章 ID:000024444

从 ArcGIS 专家处获得帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项

相关信息

发现关于本主题的更多内容