Discuss the puzzle of life and death as presented by HAMLET in his soliloquy."To be or not to be,that is the question. answer in detail
Hamlet never uses the words "I" or "me" in his soliloquy. He isn't contemplating suicide, but rather, as you state in your question, debating the nature of life and what happens when one dies.
He is thinking this:
If man lived for eternity on earth, and would never know anything but life on earth, then the puzzle of death would not exist. Due to man's mortality, however, every man must make the journey into the unknown of death. Hamlet is pondering what horrors may await those who die. The ghost of his father has planted this seed in him, telling Hamlet in I.v that the horrors esperienced by the ghost during the day--when the ghost is in hell--would drive Hamlet mad.
Ever since this revelation, Hamlet's powerlessness to act has manifested: could his plot to kill the king result in his own death? If so, would he suffer the unimaginable torments mentioned by his father?
This is reinforced when Hamlet refuses to kill Claudius while Claudius is praying: he does not want to send him to heaven.