https://github.com/osquery/osquery logo
a

alessandrogario

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

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
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
👍 1
a

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?
I THINK you can attach to the process, but I'm not sure (and should work with both)
a

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
(I never tried)
easiest way is to look at the Makefile and see which env vars are set before calling CMake
then you can add those env vars inside CLion (file -> settings -> CMake -> "Build, Execution, Deployment")
with this you can build & debug directly from CLion
on Linux for example you have to update LDFLAGS, CXX, CC and PATH
a

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
a

Aklis

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

alessandrogario

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

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?
gdb /path/to/bin
start --disable_watchdog
a

Aklis

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