mmp / pbrt-v4

Source code to pbrt, the ray tracer described in the forthcoming 4th edition of the "Physically Based Rendering: From Theory to Implementation" book.
https://pbrt.org
Apache License 2.0
2.8k stars 429 forks source link

LLDB DataFormatters (Debug Visualizer) #339

Closed wuyakuma closed 1 year ago

wuyakuma commented 1 year ago

Tested on XCode. Should work on other LLDB.

Two ways to use this:

  1. Load Manually (everytime)

    use lldb command 'command script import [PATH]/pbrt_lldbdataformatters.py' (without the quotes)

  2. Load Automatically (add to ~/.lldbinit)

    1) create ~/.lldbinit file if there isn't 2) open ~/.lldbinit 3) add 'command script import [PATH]/pbrt_lldbdataformatters.py' to the file (without the quotes) 4) restart xcode

Known issue:

ScreenShots:

TaggedPointer Vector Span Optional

mmp commented 1 year ago

Very nice--this is fantastic!

mmp commented 1 year ago

I will shortly push an update to the website that includes a new FAQ entry that lets people know about this.

wuyakuma commented 1 year ago

Glad to help ;) I've learned so much from you, this is the least I can do.