Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions scripting/actions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,27 @@ The ``extra_script.py`` file is located in the same directory as
"$BUILD_DIR/${PROGNAME}.elf", "$BUILD_DIR/${PROGNAME}.hex"
]), "Building $BUILD_DIR/${PROGNAME}.hex")
)

Debugging extra_scripts:
------------------------




#. create your extra script with `print(sys.argv)` as content
#. then add a launch json like


.. code-block:: javascript

{
"name": "Python Debugger: Upload",
"type": "debugpy",
"request": "launch",
"program": ".....\\scons.py",// put first argument of argv here
"args": [ ], // and put the rest into this args array
"console": "integratedTerminal",
}