Hi ,
I’m newbie with Tryton , I need some help to setting up my environment in Pycharm IDE to debug my code with breakpoint method. I can’t find the entry file or main method in the Trytond Module. If there is another method to debug my code please let me know .
My local environment:
tryton==5.0.44
trytond==5.0.46
Werkzeug==0.16.1
I do not use such tools for development. Usually I’m fine with logging and some print statement.
The main difficulty is that trytond is a multi-threaded server.
Modules do not have main entry. They are loaded by the trytond server, registered in the Pool and their RPC API is exposed. So the main entry for trytond is the bin/trytond if you are using the default werkzeug server otherwise it should be trytond.wsgi.app.
You should start development with more recent version. If you want LTS it should be 6.0 otherwise 6.2.
The 5.0 is the older LTS (still maintained but missing a lot of new features and improvements).
Hello @JonatanGk Thanks for the answer . Now the server run in the debug mode but when i try to connect in the terminal with client side I get this error :
Hello @oscarQ Thanks for the answer. Yes I use those librarys but also i want to find a way to stop runnig code and check values before proceeding further.
The --config option must point to the existing configuration file.
I guess in this case it can be relative to the working directory (but in case of doubt you could use absolute path).