Search This Blog

Wednesday, March 28, 2012

Debug Luxrender with Visual Studio 2010

If you don't have debug mode in your Luxrender Visual Studio project, you may not be able to debug Lux. When you start debugging, it will show warning about 'No Debugging Information.'

In order to build with debug information, you need to generate debug info for luxrender project in the following way.

Go to luxrendr Property Pages -> Linker -> Debugging -> Set Yes for Generate Debug Info

Usually it's enough to debug Luxrender, but Visual Studio would get confused to trace the codes because of complicated compiler optimaization. If you disable optimization for liblux project, it would get clear to trace your code. You can disable compiler optimization for your liblux here.

Go to liblux Property Pages -> C/C++ -> Optimization

Especially, 'Whole Program Optimization' option optimizes your binary in code generation stage and takes long time to link your object files. It will decrease the link time significantly to disable this option.

No comments:

Post a Comment

Blog Archive