Debug mode turned off - issue : unable to change values of global variables within main()