添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

The environment is HXE 2 SPS03.

The objective is to attach the Debugger to a node.js module within Web IDE.

When the XSA app's package.json file has the node engine set as "6.x" the application runs.

Though, when attempting to attach the Debugger, a message appears -> ("Debugging unavailable: Debugging not supported with Node.js < 8.1.0. Please consider upgrading engine in package.json").

Then, changing the package.json file's node engine entry from "6.x" to " ^8 " (as in the openSAP tutorial) and trying to run the node.js module causes an error.

The attached log file shows the error message. The package.json file has also been attached.

Please let me know if more information is necessary that'll help.

Thank you for your thoughts on this issue.

2018-06-25t15-51-46-763z-debuglog.txt packagejson.txt

adding "engines": { "node": "0.8.x" } to my package.json fixed that error for me.

Thanks,

Iván,

First, thank you for your time to respond.

I just tried the suggestion. When attempting to run the node.js module with the package.json modified with node as "0.8.x" a message appears: "Application failed to run. Check Logs for more details".

The builder log only shows:

[INFO] Injecting source code into builder...
[INFO] Source code injection finished
[INFO] ------------------------------------------------------------------------

It seems there is something else that I need to set.

Thanks again for your time,

Success!

On a hunch I reinstalled (sudo ./hxe_upgrade.sh) the upgrade (from SPS02 to SPS03). And, tried to run the node.js module in the app - setting "0.8.x" as the node engine produced an error again - though, setting the node engine to " ^8 " worked. And, I was able to attach the Debugger and debug some xsjs code.

Thanks!!!

Future Dated Hires Provisioning from SF EC/Onboarding to Azure AD / Onprem AD in Technology Blogs by Members New Partner Content on SAP Business Accelerator Hub (Q2 ’24) in Technology Blogs by SAP Download large file using REST adapter in SAP PO 7.5 in Technology Q&A Service to service communication of two CAP apps. Called app protected by scope in Technology Q&A