To see a detective in your dream signifies the thrills and dangers in some aspect of your waking life.
To dream that you are a detective indicates that you are searching for your hidden abilities and talents. You may be trying to solve a problem and seek out the truth about some worrisome issue.
To dream that you are being followed by a detective signifies guilt. Your character will be put under scrutiny and called into question.