Highlighted
Micro Focus Expert
Micro Focus Expert
94 views

SM 9.50: Programmatically enabling debug parameters

Jump to solution

Certainly you know about the dynamic debugging capabilities of Service Manager: To send a message to any session via status monitor and enable rtm:3 or debughttp trace.

This is very usefull, as you don't need to start a new servlet and connect to it before reproduction - simply trace the user session or background scheduler affected.

The limitation is that this is requiring the session to be trace being ready to receive a message, and there is no option to enable tracing conditionally. That makes it difficult to use for integrations.

 

Service Manager 9.50 now implements an option to activate trace parameters by implementation for the current session:

- It will take effect immediately, and

- You can implement it after an if-condition and enable this trace only when really required.

Example:

var debugmsg="sqldebug:1 log:../logs/mysm.log";
var rc=system.functions.rtecall("setdebug",vars.$L_rc, debugmsg );

 

For more information, refer to the SM 9.50 Helpserver topic:

Administer > Status and Notifications > Dynamic debugging of user sessions or schedulers > Set debugging parameters using dynamic debugging

0 Likes
1 Solution

Accepted Solutions
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: SM 9.50: Programmatically enabling debug parameters

Jump to solution

Hi Afranke,

Thanks for the information, we really appreciate it.

Carlos Villalobos R
Customer Support Engineer
If you find that this or any other post resolves your issue, please be sure to mark it as an accepted solution.
If you are satisfied with anyone’s response please remember to give them a KUDOS by clicking on the STAR at the bottom left of the post and show your appreciation.

View solution in original post

0 Likes
1 Reply
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: SM 9.50: Programmatically enabling debug parameters

Jump to solution

Hi Afranke,

Thanks for the information, we really appreciate it.

Carlos Villalobos R
Customer Support Engineer
If you find that this or any other post resolves your issue, please be sure to mark it as an accepted solution.
If you are satisfied with anyone’s response please remember to give them a KUDOS by clicking on the STAR at the bottom left of the post and show your appreciation.

View solution in original post

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.