How to start vaadin app in production mode

I want to set my app to debug or production mode using a vm parameter instead of web.xml. This seems to work: if I try to open the debug window (app url + ?debug), none appears. However my tomcat log still posts the warning about vaadin running in debug mode. Am I missing something here? Thanks for pointers!