intellij-ideapycharmazure-functionsazure-cliazure-configuration

How configure Azure function project in Intellij/Pycharm run/debug configurations on mac


How to configure Azure function project in Intellij/Pycharm run/debug configurations on Mac because I've tried to set it by my own but it doesnt work.

I would like to replace shell command: func start with run config

The image below from Pycharm

pycharm-azure config


UPDATE

I've added path to Azure-CLI and imported my app-settings

enter image description here

I'm trying to configure the run configs but it asks to select the module but there is no any module in dropdown (see pic)

intellij-azure config


UPDATE-UPDATE: Here is what azure-tools-for-intellij team me answered:

enter image description here They dont support pure python functions run yet


Solution

  • I found the way to debug in Intellij Idea/PyCharm.

    1. add these lines at the top of your file/module:
    import pydevd_pycharm
    pydevd_pycharm.settrace('127.0.0.1', port=9091, stdoutToServer=True, stderrToServer=True)
    

    enter image description here

    1. set Python Debug Server with host and port in Run/Debug Configs Screenshot at Feb 22 20-29-45

    2. run your azure functions as used to (func host start) and press debugging button.