Eating just before exercise is probably bad, for two main reasons: one is that exercising on a full stomach can be uncomfortable depending on the activity. Second, digesting food, especially fat, mobilises some energy, which is therefore not available for exercising, which makes it definitely harder.
The theory has long been that you should eat, preferentially carbohydrates, and then wait 3 to 4 hours before you exercise. This will give you the highest store of glycogen available, both for your muscles and your brain.
Eating sugar is probably always bad since it may fool your body into being careless about its store of glycogen which can lead to hypoglycaemia, initially crises, then on a regular basis, and doing anything at all during HG is really very hard. Eating too much sugar is also a factor in diabetes although exercising may succeed in reversing a Type 2.
I also recently discovered that there's a theory that you can train your body to use more fat rather than carbohydrates to fuel your muscles during exercise. This involves exercising well after your last meal. That's what I always did (last meal in the evening, exercise in the morning after). My jogging progressed from 10K to 35k in 20 years. 35K is not impressive at all but I started late in life so I take it that my experience is rather conclusive in the long run for using fat. This is presumably also good for losing weight faster. Outside of that, you normally start using fat after at least 2 hours of jogging, not exactly impressive as a motivation. However, if you can do one three-hour jogging every week, you should lose excess body fat quite fast.
Most competitive joggers take glucose supplements during long-distance running, beginning with the marathon. I never tried it but I'll do a test in 2015. I'm sceptical though. I prefer to think that if you never take supplements during the effort your body somehow get used to it.
Try to exercise in parks and woods rather than in fitness clubs or in streets. It's much more conducive to feeling good about exercising and should deliver better results in the long run.
EB