如何为方案中的gimp调试script-fu脚本? [英] How to debug script-fu scripts for gimp in scheme?

查看:183
本文介绍了如何为方案中的gimp调试script-fu脚本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用script-fu,scheme为gimp编写一些脚本。

I try to make some script for gimp, using script-fu, scheme.

自然,作为一个初学者,有很多错误和误解。

Naturally, as a beginner, there are lots of errors and misunderstandings.

现在我正在寻找一种调试那些脚本的方法。

Now I'm looking for a way to debug those scripts.

我发现了(gimp-message),但是结果不显示。我不知道是否有可能将调试消息打印到我可以检查它们的任何地方。

I found (gimp-message), but the result does not show up. I'm not aware if there is a possibility to print debug messages to anywhere I could check them.

生成充满文本的新图像可能会起作用;-)但看上去

Generating new images filled with text would probably work ;-) but looks a bit like an overkill.

有什么方法可以调试gimp中的脚本?

What ways to debug a script in gimp are there?

推荐答案

gimp消息的输出将进入错误控制台(如果您具有此可停靠的对话框设置),否则将进入警告对话框。

The output of gimp-message goes to the "Error console" (if you have this dockable dialog setup), otherwise in a warning dialog.

如果您使用的是Linux或OSX,还可以从终端启动Gimp并使用(print ...)调用,它们将显示在终端中。

If you are in Linux or OSX, you can also start Gimp from a terminal and use (print ...) calls, they will show in the terminal.

您可以使生活更轻松,并使用Python编写脚本(更易于学习,功能更强大……)。请参阅此处以获取文档,此处以获得一些示例,并此处以获取Windows的一些调试技巧。

You can make your life easier and write your scripts in Python (easier to learn, and more powerful...). See here for the doc, here for some examples, and here for some debug tricks for Windows.

这篇关于如何为方案中的gimp调试script-fu脚本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆