You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When working with Node.js applications, you may encounter debug messages or warnings from the Node.js runtime, especially when using inspector or debugging tools. To properly handle these messages:
42
+
43
+
```elixir
44
+
# In your config/dev.exs or other appropriate config file
45
+
config :nodejs, debug_mode:true
46
+
```
47
+
48
+
When `debug_mode` is enabled:
49
+
- Node.js stdout/stderr messages will be logged at the info level
50
+
- Messages like "Debugger listening on..." will not cause errors
51
+
- All Node.js processes will log their output through Elixir's Logger
52
+
53
+
This is particularly useful during development or when debugging Node.js integration issues.
54
+
39
55
### Calling JavaScript module functions with `NodeJS.call(module, args \\ [])`.
40
56
41
57
If the module exports a function directly, like this:
0 commit comments