<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 "debug" 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 "Configure"</li><li style="margin-left:15px">Specify generator to VS 9 2008 and click Finish</li><li style="margin-left:15px">Set "CMAKE_BUILD_TYPE" to Debug.</li>
<li style="margin-left:15px">Click on "Generate"</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) > 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">
'helloDemo.exe': Loaded 'C:\Projects\builds\test_hellodemo\Demo\Debug\helloDemo.exe', Binary was not built with debug information.<br>'helloDemo.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll'<br>
'helloDemo.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll'<br>The program '[0x808] helloDemo.exe: Native' 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'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>