Skip to content

Instantly share code, notes, and snippets.

@gdyr
Last active March 9, 2022 08:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gdyr/465eede08c10c92a924c584090124488 to your computer and use it in GitHub Desktop.
Save gdyr/465eede08c10c92a924c584090124488 to your computer and use it in GitHub Desktop.
JetBrains Rider setup for S# Pro Debugging

Setup

  1. Install Crestron EDK
  2. Install PowerShell plugin in Rider
  3. Set up run configurations
Write-Output ""
Write-Output "### Crestron Uploader"
Import-Module PSCrestron
$cpz = Get-ChildItem -Path .\bin\Debug\* -Include *.cpz
Write-Output ""
# Upload program
Write-Output "Uploading $($cpz.name)..."
Send-CrestronProgram -LocalFile $cpz.FullName -Device "10.10.10.2" -DoNotStart -Secure -Username "crestron" -Password "crestron"
# Configure debugging
Invoke-CrestronCommand -Command "DEBUGPROGRAM -P:1 -Port:50000 -IP:0.0.0.0 -S" -Device "10.10.10.2" -Username "crestron" -Password "crestron" -Secure
Invoke-CrestronCommand -Command "PROGRESET -P:1" -Device "10.10.10.2" -Username "crestron" -Password "crestron" -Secure
# Done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment