Lion 2017.2 OSx10.11.6 - Debugger wont stop on breakpoint

I am unable to get the debugger to stop on my breakpoint.

This problem persisted under 2016.2 so i just upgraded to 2017.2

I have tried all the debugger options under: preferences...toolchains now back on LLDB3.9.0

CMake is set to DEBUG

If i just run the project as Debug... I am able to single step.

If I hit a breakpoint, it just runs in a loop.

My test code:

#include <arpa/inet.h>
#include <netinet/in.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>


#include <iostream>
#include <string>

using namespace std;

///https://socket.io
/// \return

int main(void)
{
int i = 100;
i++;
i++;
printf("Hello World again"); <-----BREAKPOINT
do {
sleep(1);
printf("Still here \n");
}while(true);
}

CMake
/Applications/CLion.app/Contents/bin/cmake/bin/cmake -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - Unix Makefiles" /Users/rogerblain/Documents/velocation/src/test/rssi-gen
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/rogerblain/Documents/velocation/src/test/rssi-gen/cmake-build-debug

[Finished]

Debug Breakpoint List
(lldb) br list
Current breakpoints:
2: file = '/Users/rogerblain/Documents/velocation/src/test/rssi-gen/rssi-gen.cc', line = 24, exact_match = 0, locations = 1, resolved = 1, hit count = 0
2.1: where = rssi_gen`main + 47 at rssi-gen.cc:25, address = 0x000000010ab9ef5f, resolved, hit count = 0





Logfile:

https://dl.dropboxusercontent.com/u/5214787/idea.log

0

请先登录再写评论。