From what I remember, you have to wrap your program in a project and have a debug build configured in order to use the debugger in the IDE.

This should get you started:

Debugging with...