Title
#general
a

alessandrogario

12/24/2018, 10:04 AM
is that macOS?
Aklis

Aklis

12/24/2018, 10:06 AM
Yes. I build it on macOS. The osquery project own its python and I guess that it confilict my python in default
$PATH
a

alessandrogario

12/24/2018, 10:07 AM
oooh I see! nice catch
10:09 AM
It's ok to build master if you just want to refresh the packages, but if you intend to write new functionalities then you should work on experimental if you want to submit pull requests
Aklis

Aklis

12/24/2018, 1:00 PM
Do you know how I can configure my Clion for add breakpoint to debug osquery table 😭.
a

alessandrogario

12/24/2018, 1:01 PM
master or experimental?
1:01 PM
I THINK you can attach to the process, but I'm not sure (and should work with both)
Aklis

Aklis

12/24/2018, 1:01 PM
master now
a

alessandrogario

12/24/2018, 1:02 PM
if you are on master, you can configure CLion but I have no idea how to do it on macOS
1:02 PM
(I never tried)
1:02 PM
easiest way is to look at the Makefile and see which env vars are set before calling CMake
1:02 PM
then you can add those env vars inside CLion (file -> settings -> CMake -> "Build, Execution, Deployment")
1:03 PM
with this you can build & debug directly from CLion
1:03 PM
on Linux for example you have to update LDFLAGS, CXX, CC and PATH
Aklis

Aklis

12/24/2018, 1:03 PM
Let me try
a

alessandrogario

12/24/2018, 1:04 PM
if breakpoints are not hit, either:1. use osqueryd with --disable_watchdog 2. use osqueryi
Aklis

Aklis

12/25/2018, 5:25 AM
1.
5:25 AM
--disable_watchdog
doesn't work
a

alessandrogario

12/25/2018, 6:36 AM
did you manage to build with debug symbols?
6:37 AM
by default it builds without them
Aklis

Aklis

12/25/2018, 6:39 AM
a

alessandrogario

12/25/2018, 6:47 AM
interesting, can you try with gdb from the command line to see if it works?
6:48 AM
gdb /path/to/bin
6:48 AM
start --disable_watchdog
Aklis

Aklis

12/25/2018, 9:55 AM
9:55 AM
I can use my lldb ./osqueryd but I can't work in Clion. 😭