How do I download Trytond and Modules and debug in VS Code?

I created a venv and downloaded Trytond but could not debug in VS Code. Any suggestions would be appreciated.

First of all, is the question only about how to debug or also about how to start trytond?
Have you successfully started the server?

My objective is to learn how to develop with the source code. I want to run the server with VS Code in debug mode and step through the code.

It is not clear to me if you already know how to start the server or not, in case you don’t, I don’t think my configuration will help you.
In your launch.json file, you can add in configurations

        {
            "name": "trytond",
            "type": "debugpy",
            "request": "launch",
            "program": "<trytond_path>/bin/trytond",
            "args": [
                "-c", "<path>/<config_file>.conf",
            ],
        },

This runs without --dev !!, I couldn’t get it to work with it, so it must be restarted with every change in the code.

Yes, that worked! Many thanks!