- Install Crestron EDK
- Install PowerShell plugin in Rider
- Set up run configurations
Last active
March 9, 2022 08:16
-
-
Save gdyr/465eede08c10c92a924c584090124488 to your computer and use it in GitHub Desktop.
JetBrains Rider setup for S# Pro Debugging
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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