Create a Console Window

Create a console for debugging and testing in CAA RADE in Visual studio
Go to Tools->Runtime Environment Variables
Then create a User Variable called CNEXTOUTPUT and set value to 'console'.
Press 'Set'.