deathcap / wsmc

WebSocket proxy to Minecraft
33 stars 10 forks source link

Source maps sometimes not loading in debugger #16

Open deathcap opened 9 years ago

deathcap commented 9 years ago

screen shot 2015-03-22 at 9 00 44 pm

Chrome 41.0.2272.89, mcwebchat example, while debugging with breakpoints sometimes shows:

// Please wait a bit.
// Compiled script is not shown while source map is being loaded!

waiting a while, no change. Reloading usually fixes this problem however.

Haven't seen this problem with a larger browserify-based project https://github.com/deathcap/voxelmetaverse not clear what is different in wsmc/mcwebchat

deathcap commented 9 years ago

to investigate: node-minecraft-protocol adds its own source maps with gulp-sourcemaps (https://github.com/PrismarineJS/node-minecraft-protocol/pull/115), are they conflicting with browserify source maps? dist/protocol.js //# sourceMappingURL=maps/protocol.js.map, separate files added in dist/maps, versus browserify's inline maps, which might be different when they are bundled along with all other modules into bundle.js (can source maps be nested??)