If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

[gaia][camera][FFOS7715 v2.1]How to enable a debug mode by namespaces in Camera

RESOLVED FIXED

Status

Firefox OS
Gaia::Camera
--
critical
RESOLVED FIXED
3 years ago
3 years ago

People

(Reporter: jinchao.wang, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

3 years ago
In  gaia/apps/camera/js/app.js  file:

var debug = require('debug')('app');
……
function App(options) {
  debug('initialize');
  ……
  debug('initialized');
}

I want to open/enable the debug for app.js. How to do? Can provide a patch with me?
(Reporter)

Comment 1

3 years ago
Hi vchen:

    Can you find someone who be good at gaia/camera to provide a patch for me?
Flags: needinfo?(vchen)
Summary: [gaia][camera][FFOS7715 v2.1]How to enable a debug mode by namespaces. → [gaia][camera][FFOS7715 v2.1]How to enable a debug mode by namespaces in Camera
(Reporter)

Comment 2

3 years ago
Hi gchen:
   Can you help me?
Flags: needinfo?(gchen)
Just add |localStorage.debug = '*'| in main.js, more detail please refer to ReadMe[1].
[1] https://github.com/mozilla-b2g/gaia/tree/master/apps/camera#debug-messages-in-javascript-console
Flags: needinfo?(gchen)
(Reporter)

Comment 4

3 years ago
(In reply to GaryChen [:GaryChen][:PYChen][:陳柏宇] from comment #3)
> Just add |localStorage.debug = '*'| in main.js, more detail please refer to
> ReadMe[1].
> [1]
> https://github.com/mozilla-b2g/gaia/tree/master/apps/camera#debug-messages-
> in-javascript-console

Hi GaryChen:

   I have solved the problem with your help, thanks very much!
Status: NEW → RESOLVED
Last Resolved: 3 years ago
Flags: needinfo?(vchen)
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.