Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:23
erlang
5412-Extend-init_debug-to-print-path-setting-co...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 5412-Extend-init_debug-to-print-path-setting-commands.patch of Package erlang
From 391ed6678d844c6f3ea669714bdbf64a34222a4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Gustavsson?= <bjorn@erlang.org> Date: Tue, 17 Jan 2023 05:41:21 +0100 Subject: [PATCH 2/2] Extend -init_debug to print path setting commands --- erts/preloaded/src/init.erl | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/erts/preloaded/src/init.erl b/erts/preloaded/src/init.erl index cfd530bec1..a7009f2478 100644 --- a/erts/preloaded/src/init.erl +++ b/erts/preloaded/src/init.erl @@ -1024,10 +1024,13 @@ eval_script([{preLoaded,_}|T], #es{}=Es) -> eval_script(T, Es); eval_script([{path,Path}|T], #es{path=false,pa=Pa,pz=Pz, path_choice=PathChoice, - vars=Vars}=Es) -> - RealPath0 = make_path(Pa, Pz, Path, Vars), - RealPath = patch_path(RealPath0, PathChoice), - erl_prim_loader:set_path(RealPath), + vars=Vars,debug=Deb}=Es) -> + debug(Deb, {path,Path}, + fun() -> + RealPath0 = make_path(Pa, Pz, Path, Vars), + RealPath = patch_path(RealPath0, PathChoice), + erl_prim_loader:set_path(RealPath) + end), eval_script(T, Es); eval_script([{path,_}|T], #es{}=Es) -> %% Ignore, use the command line -path flag. -- 2.35.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor