express-debug icon indicating copy to clipboard operation
express-debug copied to clipboard

Express 4.x support

Open uiii opened this issue 11 years ago • 8 comments

Hi, it would be great to support Express 4.x.

uiii avatar Apr 16 '14 18:04 uiii

Thanks for the report!

This weekend I'll check to see if any forks have started on 4.x support, and if not, I'll knock it out.

devoidfury avatar Apr 17 '14 17:04 devoidfury

Basic support for 4.x included in the latest release (1.1.0), with everything but the profile panel.

Let me know if you have any feedback!

devoidfury avatar Apr 25 '14 03:04 devoidfury

Hello, this looks nice. I'm trying with express 4. Could you update the documentation ?

app.configure('development', function() {
    ^
TypeError: Object function (req, res, next) {
    app.handle(req, res, next);
  } has no method 'configure'

Offirmo avatar May 15 '14 19:05 Offirmo

Good call, thanks. It's updated on the master version readme.

devoidfury avatar May 15 '14 19:05 devoidfury

And it works ! Express 4.2 latest. At /express-debug only, though.

My application serves an index.html (via express.static). Care to explain the conditions for the debug tab integration ?

Offirmo avatar May 15 '14 20:05 Offirmo

The tab will only show when render is called in a route, usually when using a template engine. There isn't a clean way to inject into express.static served files, as far as I'm aware.

devoidfury avatar May 15 '14 22:05 devoidfury

Ok. I haven't been able to make my dust render work yet.

Express 4.2 validation : OK from me.

Thanks !

Offirmo avatar May 16 '14 08:05 Offirmo

As a note : everything is fine now, EDT gest integrated in my template pages.

Maybe we could close this issue ?

Offirmo avatar Oct 05 '14 21:10 Offirmo