Upon completion of code modification, copy the contents of the Python file back into the tool validation.
You can then open the Python file in your IDE and set breakpoints, attach the IDE to ArcGIS Pro, and run your script tool. For Python code in script tool validation (embedded in a toolbox), copy the code to an external Python file and replace the code in the Python toolbox with the example below. Remember to remove the breakpoint code upon completion of the debugging effort. Upon encountering the breakpoint, Python will enter interactive mode. Add a breakpoint (using import pdb pdb.set_trace()) into your script tool's code, and run a Python script that calls that script tool. 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. I followed all guides I could and tried to select different interpreters and also made sure to add PATH for python installation and also tried to configure the extension itself to use the exact Python path and every time I either try to right click and run code or the play button in the top right corner does not work.
The following ArcGIS Pro components can be debugged in P圜harm Professional edition: Simply so, how do I run an argument in Visual Studio To run your project with command line arguments within Visual Studio: Right-click the default project (the one to be run) in Visual Studio and select 'Properties'. or click Run Code button in context menu of file explorer. Earlier versions of either of these applications will not work. or click Run Code button in editor title menu. 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.
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.