Skip to content

gswifort/dynamo_debugger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dynamo Python Node Debugger

This tool makes it easy to debug Python nodes in Dynamo for Revit. Currently, it only supports CPython3 and integrates with Visual Studio Code for debugging.

Requirements

  • Dynamo for Revit
  • Python 3.x
  • Visual Studio Code

Installation

python -m pip install "git+https://github.com/gswifort/[email protected]"

Usage

  1. Create Dynamo project

    demo_dynamo_script

  2. Run dynamo_debugger script

    python -m dynamo_debugger demo.dyn
  3. A temporary project directory has been created in the Dynamo source files folder

    .
    ├── demo.dyn
    └── demo.dynycrmmkrh/
       ├── .vscode/
       │   └── launch.json
       ├── _node_id_to_file.json
       ├── demo.dyn
       ├── python_node_000.py
       └── start_debug.dyn
    
  4. Open start_debug.dyn in Dynamo to start debugging (only once per Dynamo session)

    start_debug_script

  5. Start debug session in VSCode

    start_debug_session_in_vscode

  6. Add breakpoints in the Python nodes in VSCode

    add_breakpoints

  7. Open temporary source file in dynamo and run script

    run_script

License

MIT License

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages