Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to debug the code #29

Closed
GH-HOME opened this issue Mar 22, 2019 · 5 comments
Closed

How to debug the code #29

GH-HOME opened this issue Mar 22, 2019 · 5 comments

Comments

@GH-HOME
Copy link

GH-HOME commented Mar 22, 2019

Hi, I just want to know your method to debug the pyrender, since it is written in C++, and we call it by python, how can I step in the cpp file in pyrender?

@BachiLi
Copy link
Owner

BachiLi commented Mar 22, 2019

Hi,

One way to do this is to run python with your debugger (e.g. gdb python or lldb python), then do 'run file.py' in the debugger. Printfs and assertions are always helpful too ; )

@GH-HOME
Copy link
Author

GH-HOME commented Mar 22, 2019

Hi,

One way to do this is to run python with your debugger (e.g. gdb python or lldb python), then do 'run file.py' in the debugger. Printfs and assertions are always helpful too ; )

Thanks. Also, do you know if there is any way to debug mitsuba? Actually I want to write my algorithm as a mitsuba plugin and then apply your code to compute the gradient with regard to the rendering parameter.

@BachiLi
Copy link
Owner

BachiLi commented Mar 31, 2019

You can also use gdb or lldb or even visual studio debugger to launch Mitsuba

@tim37021
Copy link

use gdb/lldb to debug python. and load the symbol file to your debugger.

@BachiLi
Copy link
Owner

BachiLi commented Jun 26, 2019

Closing this issue. Feel free to reopen if there are more questions.

@BachiLi BachiLi closed this as completed Jun 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants