When connected to the console, use ~~# to break to the debugger.