Skip to content

Commit 10c5efb

Browse files
committed
Updated readme for --enable-source-maps
1 parent b370ee1 commit 10c5efb

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

example/express/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"author": "Exceptionless",
99
"license": "Apache-2.0",
1010
"scripts": {
11-
"dev": "nodemon app.js",
12-
"start": "node app.js"
11+
"dev": "nodemon app.js --enable-source-maps",
12+
"start": "node app.js --enable-source-maps"
1313
},
1414
"publishConfig": {
1515
"access": "restricted"

packages/browser/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ import { Exceptionless } from "@exceptionless/browser";
5151
await Exceptionless.startup(c => {
5252
c.apiKey = "API_KEY_HERE";
5353
c.setUserIdentity("12345678", "Blake");
54+
c.useSessions();
5455

5556
// set some default data
5657
c.defaultData["mydata"] = {

packages/node/README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ JavaScript environments.
55

66
## Getting Started
77

8-
To use this package, your must be using ES6 and Node 15+.
8+
To use this package, your must be using ES6 and Node 18+.
99

1010
## Installation
1111

@@ -22,14 +22,13 @@ import { Exceptionless } from "@exceptionless/node";
2222

2323
await Exceptionless.startup(c => {
2424
c.apiKey = "API_KEY_HERE";
25-
c.setUserIdentity("12345678", "Blake");
2625

2726
// set some default data
2827
c.defaultData["mydata"] = {
2928
myGreeting: "Hello World"
3029
};
3130

32-
c.defaultTags.push("Example", "JavaScript", "Node");
31+
c.defaultTags.push("Example", "JavaScript", "Node");
3332
});
3433
```
3534

@@ -43,6 +42,15 @@ await Exceptionless.submitLog("Hello world!");
4342
Please see the [docs](https://exceptionless.com/docs/clients/javascript/) for
4443
more information on configuring the client.
4544

45+
### Source Maps
46+
47+
For improved stack traces launch your Node app with the
48+
[`--enable-source-maps` command line option](https://nodejs.org/docs/latest-v18.x/api/cli.html#--enable-source-maps).
49+
50+
```sh
51+
node app.js --enable-source-maps
52+
```
53+
4654
## Support
4755

4856
If you need help, please contact us via in-app support,

0 commit comments

Comments
 (0)