Skip to content

Instantly share code, notes, and snippets.

@codewings
Last active January 17, 2026 08:12
Show Gist options
  • Select an option

  • Save codewings/115fffe253dcf55de31501eb471a245a to your computer and use it in GitHub Desktop.

Select an option

Save codewings/115fffe253dcf55de31501eb471a245a to your computer and use it in GitHub Desktop.
Use vscode to debug Houdini SOP python code
import linecache; s=hou.pwd().parm("python").eval(); n=hou.pwd().path(); linecache.cache[n]=(len(s), None, s.splitlines(True), n)
@codewings
Copy link
Author

codewings commented Jan 17, 2026

  1. Create a Button Parameter on a Node.
  2. Set the Button's Callback Script to this single line code
  3. Click the Button to load the current Python code into VSCode's debugger after each modification.
  4. Use debugpy.breakpoint() in your code to set breakpoints.
  5. Start a debug session in VSCode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment