Skip to content

Commit

Permalink
Debug...
Browse files Browse the repository at this point in the history
  • Loading branch information
garazdawi committed Jan 12, 2024
1 parent 9c18d96 commit 3f752fd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/dockerfiles/Dockerfile.64-bit
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ RUN if [ ! -f Makefile ]; then \
find . -type f -newer README.md | xargs tar --transform 's:^./:otp/:' -cf ../otp_cache.tar; \
fi && \
sudo apt-get update && sudo apt-get install -y tree && \
V=1 MAKEFLAGS= make --debug=basic && make docs DOC_TARGETS=chunks && \
V=1 MAKEFLAGS= 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)."' make --debug=basic && make docs DOC_TARGETS=chunks && \
sudo make install install-docs DOC_TARGETS=chunks

## Disable -Werror as testcases do not compile with it on
Expand Down
7 changes: 4 additions & 3 deletions lib/observer/src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,10 @@ ERL_COMPILE_FLAGS += \
# ----------------------------------------------------
$(TYPES): $(TARGET_FILES)

$(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) $<
# $(EBIN)/etop.beam: $(ESRC)/etop.erl
# #ERL_AFLAGS='-eval "dbg:tracer(),dbg:p(all,c),dbg:tpl(epp,[{'"'"'_'"'"',[],[{exception_trace},{message, {current_stacktrace}}]}])."'
# export 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)."'
# $(V_ERLC) $(ERL_COMPILE_FLAGS) -o$(EBIN) $<

clean:
rm -f $(TARGET_FILES)
Expand Down

0 comments on commit 3f752fd

Please sign in to comment.