<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Hi,</span><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">

<br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">I have a serious problem to use VS2008 Debugger when I create a project using CMake 2.8.11.1.</div>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">For example I am trying to &quot;debug&quot; the <a href="http://www.cmake.org/cmake/help/examples.html" target="_blank" style="color:rgb(17,85,204)">HelloDemo project</a>.</div>

<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">So I do the following:</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">

<ol><li style="margin-left:15px">Select Source Folder: C:/Program Files/CMake 2.8/share/cmake-2.8/Example (Example files where available form .zip but not from .exe)</li><li style="margin-left:15px">Select build folder:  C:/Projects/builds/test_hellodemo</li>

<li style="margin-left:15px">Click on &quot;Configure&quot;</li><li style="margin-left:15px">Specify generator to VS 9 2008 and click Finish</li><li style="margin-left:15px">Set &quot;CMAKE_BUILD_TYPE&quot; to Debug.</li>

<li style="margin-left:15px">Click on &quot;Generate&quot;</li><li style="margin-left:15px">Open C:/Projects/builds/test_hellodemo/Hello.sln</li><li style="margin-left:15px">Build Solution (F7)</li><li style="margin-left:15px">

Set breakpoint on hello.Print() function inside demo.cxx file.</li><li style="margin-left:15px">Start Debugging (F5) &gt; Specify the executable file name by : C:\Projects\builds\test_hellodemo\Demo\Debug\helloDemo.exe</li>

</ol><div>And then no debugger is launched!</div></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Below is the output:</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">

<br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

&#39;helloDemo.exe&#39;: Loaded &#39;C:\Projects\builds\test_hellodemo\Demo\Debug\helloDemo.exe&#39;, Binary was not built with debug information.<br>&#39;helloDemo.exe&#39;: Loaded &#39;C:\WINDOWS\system32\ntdll.dll&#39;<br>

&#39;helloDemo.exe&#39;: Loaded &#39;C:\WINDOWS\system32\kernel32.dll&#39;<br>The program &#39;[0x808] helloDemo.exe: Native&#39; has exited with code 0 (0x0).</blockquote><div><br></div><div>Do you have any idea what I am doing wrong! I though setting Build_type to debug was enough!</div>

<div>The strange thing Is that I have used Cmake with OpenCV two years ago and I don&#39;t remind this error!</div><div><br></div><div> Cheers,</div></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">

<br></div><div>--<br>Benoit RAT<br><br></div>