How to trace through makehuman source?

Tech support and suggestions forum. If you only have a basic question on how to get started, please use the "newbies" forum in the community section.

Moderator: joepal

How to trace through makehuman source?

Postby chris.f.rice » Wed Feb 16, 2022 3:29 pm

(I think I posted this to the wrong place earlier, the general discussion forum)

Hello, I'm a software developer, although new at python, trying to understand how makehuman works. I've followed the instructions at (1) below, and the command line entry

py makehuman.py

works great, it runs fine. But I'm trying to understand what code is run when I move a slider, so I'm looking for a way to trace through. I run this:

python -m trace --trace makehuman.py

and it runs the program, and starts printing the called functions, which is *perfect* except it stops after a few seconds (while the program keeps running). Perhaps it overwhelms the console window?

Then I run this, which is supposed to save trace information to the local folder

python -m trace --count -C . makehuman.py ...

However, *no* new files are created, I'm not sure why -- is there some way that makehuman is not traceable? So, I'm stuck right now on how to trace things. Can anyone provide any insight into what I'm doing wrong above, or maybe if someone has a better way to trace through the makehuman code as it runs?

Thanks *very* much.




1) https://github.com/makehumancommunity/m ... /README.md
chris.f.rice
 
Posts: 4
Joined: Wed Feb 16, 2022 2:48 pm

Re: How to trace through makehuman source?

Postby RobBaer » Fri Feb 18, 2022 11:03 pm

Maybe this will help:
https://stackoverflow.com/questions/408 ... loop-in-qt
and
https://wiki.qt.io/Threads_Events_QObjects
My memory is that MakeHuman customizes the handling of events a little bit, but understanding the event loop is a start.
User avatar
RobBaer
 
Posts: 1208
Joined: Sat Jul 13, 2013 3:30 pm
Location: Kirksville, MO USA


Return to Bugs, problems and feature requests

Who is online

Users browsing this forum: No registered users and 1 guest