ezabaw
ezabaw

Reputation: 645

How to debug in a mean.io app?

Whenever I run my mean.io app, I can see all my functions in the aggregated.js. Is there a way to do plain and simple browser debbuging?

This question is for front-end debugging... but it would be great to know how to do backend debugging also.

Upvotes: 2

Views: 1416

Answers (3)

user3662896
user3662896

Reputation: 173

For those who 'debug: true' doesn't work... try this.

  1. Open 'aggregation.js' located in node_modules/meanio/lib
  2. At around line 125, you'll find the following hunk of code. Make the following change:

    aggregated[group][ext].weights[filename] = { weight: weight, //data: !this.debug ? ugly.code : code // <---------- comment this out data: code // <----------------- add this }

See attached image for more detail.

Purty picture of what to do

Upvotes: 0

Grey
Grey

Reputation: 676

Updated way is changed a little bit

in config\env\all.js, add a switch: debug: 'true'

hope this helps

Upvotes: 2

hbzhang
hbzhang

Reputation: 36

in config\env\all.js, add a switch: debug: true

Upvotes: 2

Related Questions