KernelSU icon indicating copy to clipboard operation
KernelSU copied to clipboard

Unable to pass debug flags to shell while flashing module

Open Zackptg5 opened this issue 2 years ago • 3 comments

Describe the bug When flashing a module through KernelSU Manager, set -x doesn't work. No debug lines are outputted in the log

To Reproduce Steps to reproduce the behavior:

  1. Add set -x in module
  2. Flash in KernelSU Manager

Expected behavior Saved log file to have debug lines

Screenshots If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information):

  • Device: WSA

Additional context Add any other context about the problem here.

Zackptg5 avatar Jul 06 '23 01:07 Zackptg5

Alternatively, can output to separate file:

exec 2>/sdcard/Download/$MODID-debug.log
set -x

Workaround for now

Zackptg5 avatar Jul 07 '23 17:07 Zackptg5

Does this work?

exec 2>&1
set -x

HuskyDG avatar Jul 09 '23 09:07 HuskyDG

Does this work?

exec 2>&1
set -x

It does but not desired behavior, it displays the debug info in the manager. The behavior in magisk manager with just setting set -x is that regular output will output to manager and the debug info would output to the log that you could then save from manager.

Zackptg5 avatar Jul 09 '23 16:07 Zackptg5