Skip to content

Commit

Permalink
More debug
Browse files Browse the repository at this point in the history
  • Loading branch information
garazdawi committed Jan 12, 2024
1 parent 56aa848 commit 9c18d96
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions lib/observer/src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,11 @@ ERL_COMPILE_FLAGS += \
# ----------------------------------------------------
# Targets
# ----------------------------------------------------
$(TYPES): env $(TARGET_FILES)
$(TYPES): $(TARGET_FILES)

env:
@which erlc
@which erl
erl -noinput -eval '{ok, _} = compile:file("etop.erl",[warnings_as_errors,debug_info,no_docs,{i,"../include"},{i,"../../et/include"},{i,"../../../libraries/et/include"}]).' -s init stop
$(EBIN)/etop.beam: $(ESRC)/etop.erl
#ERL_AFLAGS='-eval "dbg:tracer(),dbg:p(all,c),dbg:tpl(epp,[{'"'"'_'"'"',[],[{exception_trace},{message, {current_stacktrace}}]}])."'
ERL_AFLAGS='-eval "dbg:tracer(),dbg:p(all,c),dbg:tpl(epp,expand_lib_dir,x),dbg:tpl(epp,scan_include_lib1,x),dbg:tpl(epp,enter_file2,x),dbg:tp(file,path_open,x),dbg:tp(file,open,x)."' erlc $(ERL_COMPILE_FLAGS) -o$(EBIN) $<

clean:
rm -f $(TARGET_FILES)
Expand Down

0 comments on commit 9c18d96

Please sign in to comment.