that developer setting will not allow the screen to stay at full brightness, if that's what you're expecting. the screen will stay on and go dim, but not turn completely off.
this may also depend on what application you're using. some apps allow the screen to stay on with full brightness whether plugged in or not. for example dolphin browser has the setting for the screen to stay on when the browser is in use.