I'm writing a Confluence user macro and whenever I make a syntax error, the macro just stops showing up on the screen but I can't see anything in the Confluence log or anywhere else. So, how am I supposed to know what syntax error I have made?
Hello @Mikel Rodriguez . As a fellow user macro enthusiast, I understand your pain. You have a few options, some more painful than others:
Generally, I build my macros up slowly, often creating small macros to just test one function.
Lastly, you can always started another question for the community to try to find what you can't see (so hard to see your own errors -- I know).
That's my problem, I've already set up a Confluence instance in my computer, I run it directly from Eclipse inside of a Tomcat server, and when there is an error rendering the macro, I look at the console and it's completely silent. I see no stack traces whatsoever. I've already configured log4j so that the root logger is INFO level and I've removed all specific loggers so that the INFO level applies to everything, and still I can't see any errors when I render the macro on a page. I see millions of messages as I've chosen a very verbose root logging level, but nothing related to the macro itself. Could you give me please some insight on what's happening to me? It's mind-boggling isn't it?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.