AFAIK, there is no interactive debugger for CMake scripts. You are doing exactly what I do. I use the message() command frequently to output variable values and test code flow. It's really the only way, unfortunately.<br>
<br><div class="gmail_quote">On Sun, Apr 15, 2012 at 11:04 AM, Christoph Grüninger <span dir="ltr"><<a href="mailto:christoph.grueninger@iws.uni-stuttgart.de">christoph.grueninger@iws.uni-stuttgart.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi CMake,<br>
how do you debug CMake scripts? I know -Wdev, --debug-output,<br>
and --trace but often they are not sufficient. If I am<br>
interested in the value of a variable or want to check why a<br>
test fails I have no clue what to do. Currently, I work with<br>
printf debugging, a technique from the middle age of computer<br>
programming.<br>
Does a special mode or program exist to help me with debugging?<br>
How do you do your debugging?<br>
<br>
Thanks in advance,<br>
Christoph<br>
<br>
--<br>
My new computer came with Windows 7.<br>
Windows 7 is much more user-friendly than Windows Vista.<br>
I don't like that. [Sheldon, S03E13]<br>
--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br>