|
17 | 17 |
|
18 | 18 | // Default configuration |
19 | 19 | module.exports = { |
20 | | - enabled: true, |
21 | | - workingDirectory: process.cwd(), |
| 20 | + debug: { |
| 21 | + enabled: true, |
| 22 | + workingDirectory: process.cwd(), |
22 | 23 |
|
23 | | - // The path within your repository to the directory containing the |
24 | | - // package.json for your deployed application. This should be provided |
25 | | - // if your deployed application appears as a subdirectory of your repository. |
26 | | - appPathRelativeToRepository: undefined, |
| 24 | + // An identifier for the current code deployment. |
| 25 | + description: undefined, |
27 | 26 |
|
28 | | - // Log levels: 0-disabled,1-error,2-warn,3-info,4-debug. |
29 | | - logLevel: 1, |
| 27 | + // The path within your repository to the directory containing the |
| 28 | + // package.json for your deployed application. This should be provided |
| 29 | + // if your deployed application appears as a subdirectory of your repository. |
| 30 | + appPathRelativeToRepository: undefined, |
30 | 31 |
|
31 | | - // How frequently should the list of breakpoints be refreshed from the |
32 | | - // cloud debug server. |
33 | | - breakpointUpdateIntervalSec: 10, |
| 32 | + // Log levels: 0-disabled,1-error,2-warn,3-info,4-debug. |
| 33 | + logLevel: 1, |
34 | 34 |
|
35 | | - // We expire stale breakpoints on the server. |
36 | | - breakpointExpirationSec: 60 * 60 * 24, // 24 hours |
| 35 | + // How frequently should the list of breakpoints be refreshed from the |
| 36 | + // cloud debug server. |
| 37 | + breakpointUpdateIntervalSec: 10, |
37 | 38 |
|
38 | | - capture: { |
39 | | - // Whether to include details about stack frames belonging to node-core. |
40 | | - includeNodeModules: false, |
| 39 | + // We expire stale breakpoints on the server. |
| 40 | + breakpointExpirationSec: 60 * 60 * 24, // 24 hours |
41 | 41 |
|
42 | | - // Maximum number of stack frames to capture data for. The limit is aimed |
43 | | - // to reduce overall capture time |
44 | | - maxFrames: 20, |
| 42 | + capture: { |
| 43 | + // Whether to include details about stack frames belonging to node-core. |
| 44 | + includeNodeModules: false, |
45 | 45 |
|
46 | | - // Only collect locals and arguments on a few top frames. For the rest |
47 | | - // only collect the source location |
48 | | - maxExpandFrames: 5, |
| 46 | + // Maximum number of stack frames to capture data for. The limit is aimed |
| 47 | + // to reduce overall capture time |
| 48 | + maxFrames: 20, |
49 | 49 |
|
50 | | - // To reduce the overall capture time, limit the number of properties |
51 | | - // gathered on large object. A value of 0 disables the limit. |
52 | | - maxProperties: 0, |
| 50 | + // Only collect locals and arguments on a few top frames. For the rest |
| 51 | + // only collect the source location |
| 52 | + maxExpandFrames: 5, |
53 | 53 |
|
54 | | - // Total 'size' of data to gather. This is NOT the number of bytes of data |
55 | | - // that are sent over the wire, but instead a very very coarse approximation |
56 | | - // based on the length of names and values of the properties. This should |
57 | | - // be somewhat proportional to the amount of processing needed to capture |
58 | | - // the data and subsequently the network traffic. A value of 0 disables the |
59 | | - // limit. |
60 | | - maxDataSize: 20000, |
| 54 | + // To reduce the overall capture time, limit the number of properties |
| 55 | + // gathered on large object. A value of 0 disables the limit. |
| 56 | + maxProperties: 0, |
61 | 57 |
|
62 | | - // To limit the size of the buffer, we truncate long strings. |
63 | | - // A value of 0 disables truncation. |
64 | | - maxStringLength: 0 |
65 | | - }, |
| 58 | + // Total 'size' of data to gather. This is NOT the number of bytes of data |
| 59 | + // that are sent over the wire, but instead a very very coarse approximation |
| 60 | + // based on the length of names and values of the properties. This should |
| 61 | + // be somewhat proportional to the amount of processing needed to capture |
| 62 | + // the data and subsequently the network traffic. A value of 0 disables the |
| 63 | + // limit. |
| 64 | + maxDataSize: 20000, |
66 | 65 |
|
67 | | -// These configuration options are for internal experimentation only. |
68 | | -internal: { |
69 | | - registerDelayOnFetcherErrorSec: 300 // 5 minutes. |
70 | | -} |
| 66 | + // To limit the size of the buffer, we truncate long strings. |
| 67 | + // A value of 0 disables truncation. |
| 68 | + maxStringLength: 0 |
| 69 | + }, |
71 | 70 |
|
| 71 | + // These configuration options are for internal experimentation only. |
| 72 | + internal: { |
| 73 | + registerDelayOnFetcherErrorSec: 300 // 5 minutes. |
| 74 | + } |
| 75 | + } |
72 | 76 | }; |
0 commit comments