Using the pdb module is useful for debugging a script tool execution code running in a stand-alone Python script. The pdb module cannot be used to debug within ArcGIS Pro, but it can be used to debug stand-alone scripts, including the execution code for script tools. It is not a fully developed IDE, but it can be used for interactive source code debugging. The pdb module is part of the Python standard library. The following ArcGIS Pro components can be debugged in P圜harm Professional edition: Earlier versions of either of these applications will not work. Microsoft Visual Studio 2017 can be used to debug ArcGIS Pro 2.1 and later. On the Select Code Type dialog box, check Debug these code types, check Python, and click OK.On the Attach to Process dialog box, click the Select button.On the main menu, click Debug > Attach to Process.To debug Python code in ArcGIS Pro, use the following steps to get started: The following Visual Studio workload must be installed: Python development. The following ArcGIS Pro components can be debugged in Visual Studio: Python IDEs can be used to author and troubleshoot script tool and Python toolbox validation and execution code. IDEs make the writing and troubleshooting of code easier and more efficient. Integrated development environments (IDEs) are applications that provide editing and debugging functionality for code writers. Python is used in many parts of the ArcGIS Pro application.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |