jEdit Community - Resources for users of the jEdit Text Editor
Jython Macro debug mode (how to set options!)
Submitted by WGW on Tuesday, 30 March, 2004 - 04:43
I have been trying to write jython macros. One thing I have not understood properly is whether there is a macro debug mode for jython macros. I can't seem to find any documentation on it. I did find the options file, with the following entry.

options.jython.python.verbose.values=debug comment message warning error


But I'm not sure what to do with it (I'm assuming I should put it in the properties file.)

Should I put it in as is? Will it allow macro debugging?

Many questions!
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
For debugging Jython macros,
by Anonymous on Tue, 30/03/2004 - 14:59
For debugging Jython macros, I've had success using either "Macros.message(view,'xxx')" or "print >> sys.stderr, 'xxx'". You could also use jEdit's log (see Log.log). Another useful thing is to try doing things in the JythonInterpreter console -- once you get something to work there, copy it into the macro.
 
debug mode
by WGW on Wed, 31/03/2004 - 17:17
Thanks, that will help; I will give your suggestions a try. I haven't tried (foolishly) the interpreter window because I wasn't sure how the variables like text and line would work. I suppose it is clever enough to know what window I want the code to apply to.

More experimenting!

Thanks again.
User login
Browse archives
« September 2024  
MoTuWeThFrSaSu
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
32%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1093
Syndication
file   ver   dls
German Localization light   4.4.2.1   97301
Context Free Art (*.cfdg)   0.31   46061
BBEdit scheme   1.0   18600
JBuilder scheme   .001   18501
ColdFusion scheme   1.0   18030
R Edit Mode - extensive version   0.1   17480
Advanced HTML edit mode   1.0   16212
Matlab Edit Mode   1.0   16074
jEdit XP icons   1.0   15235
XP icons for jEdit   1.1   14299