Modify the host address of AOCmini\envs\Product-ExtendedPkgRTService\mediator\backend_webcmd.py. Please check whether the debug file path in launch.json is correct. The vscode console has output, but the page breakpoint is not stopped. A dialog will appear asking you to set up a debug configuration. You need to kill all the python processes before debuggingĢ. Python breakpoints can not stop reasons: Via SSH Click on the Debug tab Click Run. Open the file and press F5 to start the script with the debugger attached, which. The root cause of the problem that debugpy can't connect : Run scripts Right-click on the file, and select Run Python File in Terminal.
Method to add python interpreter path: press Ctrl + Shift + P (or F1 ), enter Python: Select Interpreter search in the open input box, and select Python parser.ġ. Note : You need to click on the test run before debugging, and there will be NO response if you directly click to debug in vscode. Open SSP package under directory AOCmini\envs\Product-ExtendedPkgRTService\venv-xxxx\python\aaamini in VSCodeĪfter clicking the run icon on the left, create launch.jsonĪfter breaking the point in the python or jinja2 file, send the configuration on the AOCmini interface and click Test Run.ĭebug on the vscode page (shortcut F5 ), vscode will stop at the breakpoint and wait for debugging. Unless a host and port are specified, host defaults to 127.0.0.1ĭebugpy.listen(('localhost', debug_server_port))
Debugging python in visual studio code code#
# 5678 is the default attach port in the VS Code debug configurations.
You can then save the notebook file and open it again as a notebook in the Notebook Editor, Jupyter, or even upload it to a service like Azure Notebooks. The downloaded debugpy file locatesin $PYTHON_HOME/Lib/site-packagesĮdit AOCmini\envs\Product-ExtendedPkgRTService\mediator\backend_webcmd.py add scirpt below. Opening a notebook as a Python file allows you to use all of VS Code's debugging capabilities.
Debugging python in visual studio code install#
Pip install debugpy -i -trusted-host Ĭopy the debugpy plugin to the directory of AOCminiįind the debugpy just downloaded from the local python directorycopied to AOCmini of AOCmini \ envs \ Product-ExtendedPkgRTService \ mediator or python directory. ĭownload the debugging plug-in debugpy for python through pip install debugpy. Pre-requirement: AOCmini, python, jdk, SND package/SSP package loaded and device addedĭownload python plugin and jinja plugin in vscode.