Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

怎么启用scim的全部打印? #41

Open
hantengc opened this issue Jul 4, 2024 · 6 comments
Open

怎么启用scim的全部打印? #41

hantengc opened this issue Jul 4, 2024 · 6 comments

Comments

@hantengc
Copy link

hantengc commented Jul 4, 2024

ubuntu 2004系统
操作步骤:

  1. 终端执行 scim ,查看日志打印信息
  2. 发现在scim_module_init里面的stderr信息都有输出到终端上
  3. 发现scim的engine里面日志信息没有被输出在终端上
  4. 当前存在的进程:scim-launcher、scim-helper-manager、scim-panel-gtk和scim-im-agent这几个进程
  5. 查看进程的fd文件发现也没有任何的日志输出:sudo tail -f /proc/pid/fd/2 或者sudo tail -f /proc/pid/fd/1或者sudo tail -f /proc/pid/fd/0 都是没有任何输出的。代码里面使用的打印方式是: SCIM_DEBUG_IMENGINE(2) << "engine debug info \n"

请问我应该怎么设置debug输出等级,将打印信息输出呢?
@tzhuan

@hantengc
Copy link
Author

hantengc commented Jul 4, 2024

You may build the scim with debug enabled and specify the debug flag to see if your module is loaded correctly.

how to build the scim with debug enabled?

@hantengc
Copy link
Author

hantengc commented Jul 4, 2024

@tzhuan
Copy link
Member

tzhuan commented Jul 6, 2024

You may configure the scim with --enable-debug to enable the debug facility support.

$ ./configure --help | grep debug
  --enable-debug          Turn on debugging

@hantengc hantengc reopened this Jan 4, 2025
@hantengc
Copy link
Author

hantengc commented Jan 4, 2025

`config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands

Build options:
Version 1.4.18
Install prefix /opt/scim
Build shared libs yes
Build static libs yes
Build tests/* no
Enable debug yes
Enable ld version script no
Enable lt_dladvise no
Build documents no

Module options:
Simple config module yes
Socket config module yes

X11 FrontEnd module yes
Socket FrontEnd module yes

RawCode IMEngine module yes
Socket IMEngine module yes

SCTC Filter module yes

GTK Utility Library yes
X11 Utility Library yes

GTK Version 3

GUI Setup Utility yes

GTK Panel GUI yes

Enable TrayIcon yes

GTK2 IMModule dir /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules
GTK3 IMModule dir /usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules
GTK4 IMModule dir
QT3 IMModule dir
QT4 IMModule dir
QT5 IMModule dir
Clutter IMModule dir /usr/lib/x86_64-linux-gnu/clutter-imcontext/immodules

QT3 moc program
QT4 moc program
QT5 moc program

Original GTK2 IMModule no
Original GTK3 IMModule no

Scim IM Agent yes
GTK2 IMModule yes
GTK3 IMModule yes
GTK4 IMModule no
QT3 IMModule no
QT4 IMModule no
QT5 IMModule no
CLUTTER IMModule yes

`
构建的时候执行的命令是:./configure --prefix=/opt/scim --enable-debug --enable-clutter-immodule
并且log信息显示我已经启用了debug
我在终端执行./scim并没有任何有用的日志输出,请问我应该怎么运行scim才可以看到里面所有的log?

@hantengc
Copy link
Author

hantengc commented Jan 4, 2025

@tzhuan

@tzhuan
Copy link
Member

tzhuan commented Jan 8, 2025

You may specify the -m (or --mask) and -v (or --verbose) flags to specify the debugging module and level.
For example, scim -v 7 -m all

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants