Dynamic Languages (Node.JS, Python, PHP, C/C++, Webserver Agent)

cancel
Showing results for 
Search instead for 
Did you mean: 

NodeJS debug does not seem to be working anymore

Highlighted
Producer

NodeJS debug does not seem to be working anymore

Has anyone run into a problem with turning on debugging with NodeJS?  I added ("debug": true) in order to take a look at the logs and I'm getting an error now:

Looks like this is version 4.5.9.0 build 4893

 

Appdynamics agent cannot be initialized due to TypeError: Cannot add property clsDisabled, object is not extensible
TypeError: Cannot add property clsDisabled, object is not extensible
at Agent.init (/my_app/node_modules/appdynamics/lib/core/agent.js:194:27)
at AppDynamics.self.(anonymous function) [as profile] (/my_app/node_modules/appdynamics/lib/core/agent.js:575:26)
at Object.<anonymous> (/my_app/my.js:9:8)
at Module._compile (internal/modules/cjs/loader.js:736:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:747:10)
at Module.load (internal/modules/cjs/loader.js:628:32)
at tryModuleLoad (internal/modules/cjs/loader.js:568:12)
at Function.Module._load (internal/modules/cjs/loader.js:560:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:801:12)
at executeUserCode (internal/bootstrap/node.js:526:15)

NodeJS debug does not seem to be working anymore
2 REPLIES 2
AppDynamics Team

Re: NodeJS debug does not seem to be working anymore

Hi Steven,

 

Can you share your exact agent profile block where you are passing the - debug:true.

Also, what underlying nodejs framework are you using? Can you also share the output of npm config get user-agent.

 

Note - Please make sure to remove any sensitive information like accesskey, account name, etc.

 

Thanks

Abhimanyu



Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.
Producer

Re: NodeJS debug does not seem to be working anymore

Sorry - I'm just getting back to this now - I'm getting this error consistently both in a node:carbon docker container as well as my Mojave OSX laptop.

 

Config:

const appd = require('appdynamics')
appd.profile({
"controllerHostName": "xxx.saas.appdynamics.com",
"controllerPort": 443,
"controllerSslEnabled": true,
"accountName": "xxx",
"accountAccessKey": "xxx",
"applicationName": "xxx",
"tierName": "xxx",
"nodeName": "xxx"
})
 

Container:

# npm config get user-agent
npm/6.4.1 node/v8.15.0 linux x64

 

OSX:

$ npm config get user-agent
npm/6.10.1 node/v12.6.0 darwin x64