PyCharm is the Integrated Development Environment (IDE) of choice for the RTX Remix Toolkit team. This documentation provides tips and tricks utilized by team members to enhance their development experience.
- PyCharm Professional installed on your system (the community edition will not suffice).
- Basic knowledge of Python programming.
- Launch PyCharm Professional.
- On the right-hand side, click on "Edit Configurations."
- Create a new Python debug server configuration.
- Change the port number to 33100 and save the configuration.
- Disable
python.debug.use.single.port
in Help | Find Action | Registry. - Restart PyCharm.
- Choose the newly created debug configuration and click "Debug."
- The debugger will be activated, displaying the debugging interface.
-
Execute the following command in your terminal or command prompt:
lightspeed.app.trex.bat --enable omni.flux.debug.pycharm --/exts/omni.flux.debug.pycharm/pycharm_location="%APPDATA%\Local\Programs\PyCharm Professional"
In this command, replace
%APPDATA%\Local\Programs\PyCharm Professional
with the actual path where your PyCharm is installed.
Please note that starting the PyCharm server before using the additional options is essential for proper functionality.
You can now enjoy debugging your Python code using the powerful features of PyCharm Pro.
To get started with PyCharm and improve your development workflow, follow these steps:
Add the project-specific folder _build\windows-x86_64\release\site
into the Python path. Launch PyCharm and run the
application.
Create launch configurations to run your project directly from PyCharm. For example, to enable the profile extension automatically to connect with Tracy, use the following command:
--enable omni.kit.profile_python --enable omni.kit.profiler.tracy --enable omni.kit.profiler.window --/app/profilerBackend="tracy" --/app/profileFromStart=true
Extend the template setup to add more templates, such as creating a TreeView + Model + Delegate.
Configure PyCharm to use the Python interpreter of the project (File->Settings->Project->Interpreter).
Ignore unnecessary folders like the _build folder (File->Settings->Project->Structure). Avoid using the _ * wildcard, as it may also ignore init.py files.
Define scopes specific to the Kit architecture, such as:
- Project extension (to look only inside the extensions folder of the project)
- Project Python extension
- Project C++ extensions
Add repository tools as external tools in PyCharm (File->Settings->External Tools).
For example, set up hotkeys to run repo format_code or repo lint_code on the selected file, opened file, or selected
folder using the provided macros for directories (e.g.,
By following these steps, you can harness the power of PyCharm and tailor it to your specific needs, making your development experience more efficient and enjoyable.