SuperDevMode in IntelliJ?

Can someone please help me out in getting SuperDevMode to work via IntelliJ? I am trying to get my tomcat server or my Jetty server to recognize the ?superdev URL option, but no luck. I am using the following URL as an example:

https://vaadin.com/docs/-/part/framework/clientside/clientside-debugging.html

I have made the necessary XML file changes, but for the life of me I can’t figure out how to handle this piece:

-noserver -war WebContent/VAADIN/widgetsets com.example.myproject.widgetset.MyWidgetSet -startupUrl http://localhost:8080/myproject -bindAddress 127.0.0.1

I have tried various things, but so far no luck.

To be honest, even a poor man debugger would be great for all client side development. I am trying to add some Grid Extensions (as detailed here: https://vaadin.com/blog/-/blogs/vaadin-7-5-grid-extensio-1) but something is going very wrong. If you could even let me know how to throw an alert, or get something to the console, I would be immensely appreciative.

Thanks in advance
Dan

Ok, I worked my way through the superdevmode, but a way to print out (or alert) values from classes extending
AbstractExtensionConnector would be very useful. System.out goes nowhere, and the Notification class is no good here. I tried many other traditional ways, and none have worked so far.

Does anyone have a poor man’s debugger I can use in this case?

Hi Dan,

for a quick and dirty solution, you could use VConsole.log() to print out messages to the browser’s JavaScript console. It’s deprecated, but it does still work. You should also be able to set up a standard Java logger that prints to the browser console if you’re looking for a more permanent solution (but I think productionMode needs to be false for it to work).

-Olli

Thanks Olli, that’s perfect.