Cut the aubergines into quarters lengthways, then cut the quarters into 2.5cm/1in slices. Cut the courgettes into 2.5cm/1in slices. De-seed the peppers and cut them into bite-sized pieces.
Score a cross in the base of each tomato and place them in a heatproof bowl. Pour over enough boiling water to cover and set aside for one minute. Drain and set aside until cool enough to handle, then peel away the skins. Cut them into quarters, scoop out the seeds and discard. Roughly chop the flesh.
Heat the oil in a flameproof casserole dish and add the onions. Cook over a gentle heat for 8-10 minutes, stirring occasionally, until golden-brown and very tender. Add the aubergines and courgettes, increase the heat slightly and cook for 2-3 minutes. Stir in the peppers, garlic, sugar, some salt and pepper and half the basil and mix well. Cover and cook over a very gentle heat for 20 minutes.
Add the tomatoes to the pan and cook for a further 10 minutes. Scatter with the remaining basil and serve.