forked from Roland-s-Demo-Org/opengrep
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebug
More file actions
21 lines (18 loc) 路 609 Bytes
/
Copy pathdebug
File metadata and controls
21 lines (18 loc) 路 609 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#! /usr/bin/env bash
#
# Run the osemgrep program with ocamldebug.
#
# Example of use:
# $ ./debug
# ...
# (ocd) set arguments -j 1 --debug -e 'foo($X, $Y)' -l java tests/java/concrete_syntax.java
# (ocd) run
# ...
# The --debug arguments to is to change the behavior of semgrep and
# let the exn bubble up, for a better debugging experience.
# The -j 1 is to not use multiple processes, which is better for ocamldebug.
#
set -eu
# so can use dune build in run-ocamldebug.sh
source libs/ocaml-tree-sitter-core/tree-sitter-config.sh
./scripts/run-ocamldebug.sh ./_build/install/default/bin/osemgrep.bc