how to debug or log info in bean | Community
Skip to main content
Xena_bcn
New Participant
October 16, 2015
Solved

how to debug or log info in bean

  • October 16, 2015
  • 34 replies
  • 7521 views

hello here.

So one of my component java bean functions is not returning result I am expecting.

I added log.info  to trace , doesn't print anything.

 

Then used debug from Eclipse , doesn't stop on breakpoints.

 

Where and what I should do?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by edubey

Try this snippet of code.

Resource r = resourceResolver.getResource(path); Asset a = r.adaptTo(Asset.class); Rendition rnd = a.getOriginal(); long size = rnd.getSize();

34 replies

edubey
edubeyAccepted solution
New Participant
October 16, 2015

Try this snippet of code.

Resource r = resourceResolver.getResource(path); Asset a = r.adaptTo(Asset.class); Rendition rnd = a.getOriginal(); long size = rnd.getSize();
Xena_bcn
Xena_bcnAuthor
New Participant
October 16, 2015

I did as u said. it is not printing anything from the private method

 

anyway i can move all the commands to the public method it was called. without using a function

Xena_bcn
Xena_bcnAuthor
New Participant
October 16, 2015

Hello @edubey

Thank you a lot

it worked !

I didn't reply till now because I got engaged with another task before I tried your solution just now.

Xena_bcn
Xena_bcnAuthor
New Participant
October 16, 2015

thank you I will try it now.